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

chore(grafana): configurable datastore #806

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

h4wkmoon
Copy link
Contributor

@h4wkmoon h4wkmoon commented Aug 30, 2023

In grafana dashboard, prometheus datasource is hardcoded. This does fit every installation.
This PR make prometheus datasource a templating variable.

@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for capsule-documentation canceled.

Name Link
🔨 Latest commit c909852
🔍 Latest deploy log https://app.netlify.com/sites/capsule-documentation/deploys/64ef465c4194c5000844ad83

@prometherion prometherion added this to the v0.3.4 milestone Aug 30, 2023
@prometherion
Copy link
Member

Lgtm, let's align to the semantic commit messages to get it merged!

I'd say chore(grafana): configurable datastore would be good.

Copy link
Contributor

@aslafy-z aslafy-z left a comment

Choose a reason for hiding this comment

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

I generally see the ${DS_PROMETHEUS} notation but I guess it's ok without brackets

"text": "Prometheus",
"value": "Prometheus"
},
"hide": 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"hide": 0,
"hide": 2,

So the variable is hidden and the default Prometheus data source is selected

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd think it's better to have this variable visible. For example, one may want to switch between prometheus (with short term storage) and Thanos.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok to me. :)

@h4wkmoon h4wkmoon changed the title feat: make Prometheus datasource a variable in grafana dashboard chore(grafana): configurable datastore Sep 5, 2023
@h4wkmoon h4wkmoon marked this pull request as draft September 5, 2023 08:01
@h4wkmoon
Copy link
Contributor Author

h4wkmoon commented Sep 5, 2023

I generally see the ${DS_PROMETHEUS} notation but I guess it's ok without brackets

True. Let me check.

@prometherion
Copy link
Member

@h4wkmoon can we convert this from draft to ready for getting merged?

@oliverbaehler oliverbaehler removed this from the v0.3.4 milestone Nov 7, 2023
@oliverbaehler oliverbaehler marked this pull request as ready for review January 10, 2024 21:49
@oliverbaehler oliverbaehler merged commit f93d2da into projectcapsule:main Jan 10, 2024
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.

4 participants