New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@apolitical/monitoring-formatter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apolitical/monitoring-formatter

Apolitical monitoring formatter for terraform files.

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Monitoring Formatter

Small tool to build the dashboard_json string value inside of main.tf.json automatically, from an intermediate dashboard.json file.

The format-dashboard.js script can either be run in export or import mode. When run in export mode, it will take the JSON string in dashboard_json and save it to a dashboard.json file. When run in import mode, it will turn the JSON object inside of dashboard.json and save it as a single line string in dashboard_json, inside of main.tf.json.

Please always run both modes when using this tool, and do not commit the file called dashboard.json.

Usage:

  • Install in the repo where you want to use it via yarn add @apolitical/monitoring-formatter --dev
  • Run yarn monitoring-formatter export
  • Make modifications to the new file dashboard.json
  • Run yarn monitoring-formatter import

Keywords

Monitoring

FAQs

Package last updated on 08 Nov 2021

Related posts