-
Notifications
You must be signed in to change notification settings - Fork 40
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
Grafana Dashboard in Helm Chart doesn't work #256
Comments
@maxpain With Dragonfly, We don't deploy the prometheus. The issue seems to be that the datasource is misconfigured. Can you check for the same? Thanks |
Yes, the provisioned dashboard doesn't have datasource variable |
You should be provisioning a prometheus instance right? if you already have one, add it into grafana and set it as the datasource of the dashboard. The service monitor only configures prometheus to collect metrics 🤔 |
@Pothulapati Yes, I have configured Prometheus (actually VictoriaMetrics, which is much better) for my Grafana installation. So, the Dragonfly grafana dashboard from the helm chart should be fixed. |
@maxpain Sure! So, probably a way to pass the prometheus data source (including VictoriaMetrics) as a config through the helm chart? |
@Pothulapati I don't know how exactly, but all other helm charts with built-in grafana dashboards don't require configuring the Prometheus data source via helm values. They work out of the box. |
Here is an example: |
Looks like DS_Prometheus is a good answer where the user gets the option to select the datasource at the top. |
I also encountered a similar problem - no datasource selection and the entire dashboard is empty with errors. I was able to fix it locally by adding datasource selection similar to cloudnative-pg to - {
- "hide": 2,
- "name": "DS_PROMETHEUS",
- "query": "prometheus",
- "skipUrlSync": true,
- "type": "constant"
- },
+ {
+ "current": {
+ "selected": false,
+ "text": "Prometheus",
+ "value": "prometheus"
+ },
+ "hide": 0,
+ "includeAll": false,
+ "label": "Datasource",
+ "multi": false,
+ "name": "DS_PROMETHEUS",
+ "options": [],
+ "query": "prometheus",
+ "queryValue": "",
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "type": "datasource"
+ }, Can we try testing this solution? I think the problem is that "prometheus" query is hardcoded and all $DS_PROMETHEUS mentions are interpolated with this string. So, grafana doesn't ever try to use first available datasource with prometheus type. VictoriaMetrics users usually don't name their datasources "prometheus". For example, mine is called "VictoriaMetrics". |
Sure! @risen228 Can you raise a PR? |
Signed-off-by: Evgenii Zakharov <[email protected]>
@Pothulapati done: #279 |
Hello. I've deployed the dragonfly-operator Helm chart with the following values:
But getting this error:
The text was updated successfully, but these errors were encountered: