@apolitical/monitoring-formatter

0.0.3 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @apolitical/monitoring-formatter

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • npm-apolitical-styleguide