0.0.3 • Published 4 years ago
@apolitical/monitoring-formatter v0.0.3
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