Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[integrations] Add a datasource variable and reuse it in all the panels of the aggregator dashboard #2182

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

jorgelbg
Copy link
Contributor

What this PR does / why we need it:

Fixes #

Special notes for your reviewer:

When importing the M3 aggregator dashboard to use in Grafana, all the panels were showing an empty query and some sample visualizations. AFAIK the missing datasource property in the JSON caused it to revert back to the "sample data". Since all the metrics were missing anyhow it was not easy to make it work.

This PR introduces a $datasource variable as the first variable that lists all the available Prometheus datasources. This variable is then used/added to all the panels in the dashboard which should make it easier to customize in the future since the panel will no be fixed to a particular name for the datasource.

Tested using the latest Grafana stable release v6.6.2.

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@arnikola arnikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, sorry for not having a look earlier! I'll kick off a build and merge it when it's green 👍

@arnikola arnikola merged commit 8f6d216 into m3db:master Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants