Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grafana-dashboards

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grafana-dashboards

* Run `npm install -g grafana_dashboards` * Edit `dashboards.js` with your dashboard changes. See this package's dashboards.example.js for a starter.

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

Setup

  • Run npm install -g grafana_dashboards
  • Edit dashboards.js with your dashboard changes. See this package's dashboards.example.js for a starter.

Uploading new dashboards

  • Run grafana_dashboards
  • Enter your Grafana username/dashboard path/password.
  • Done

Customization

By default, the grafana dashboard creator will iterate through the dashboardsByRegion exposed in the dashboard.js file and run the generateRegionDashboard function that has a set of default dashboards depending on the configurations in the dashboardsByRegion.

Your dashboards.js file should have at least the dashboardsByRegion object exported. If you want to generate the dashboards differently than the default, you can export the generateRegionDashboard function in your dashboard.js file and it'll use that one instead of the one specified in index.js.

See the dashboards.examples.js as an example dashboard configuration.

Environment variables

Grafana Dashboard Creator uses dotenv to allow for a .env file to have locally defined environment variables.

If you want to define these, they can bypass the prompts:

GRAFANA_USERNAME=my_user_name
GRAFANA_URL=https://grafana.example.come
GRAFANA_DASHBOARD_JS=./dashboards

FAQs

Package last updated on 27 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc