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

feat(dashboard): support latest grafana json dashboard model #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

visheyra
Copy link

Hi @esanchezm I updated your dashboard.json so the latest grafana would be able to load it :) feel free to tell me if you need additional changes, thanks for the exporter !!!

Copy link
Owner

@esanchezm esanchezm left a comment

Choose a reason for hiding this comment

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

Hey @visheyra I wasn't aware the dashboard couldn't load. Could you give more details? Thanks!

I tried importing it and it many charts failed. I'm leaving some comments. If you tell me what you changed I could probably update my dashboard and launch an upgraded version, but I can't merge yours as it's not ready

"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"datasource": {},
Copy link
Owner

Choose a reason for hiding this comment

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

This is not good, all panels should reference to the ${DS_PROMETHEUS} variable or they won't work properly when you select another prometheus instance

"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
Copy link
Owner

Choose a reason for hiding this comment

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

You should use ${DS_PROMETHEUS} and not a specific UID that may not exist for other users

@@ -411,7 +357,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
Copy link
Owner

Choose a reason for hiding this comment

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

Same here, use ${DS_PROMETHEUS}

},
"definition": "label_values(qbittorrent_torrents_count{server=\"$server\"},category)",
"definition": "label_values(qbittorrent_torrents_count,category)",
Copy link
Owner

Choose a reason for hiding this comment

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

Why are you removing this query?

"hide": 0,
"includeAll": true,
"includeAll": false,
Copy link
Owner

Choose a reason for hiding this comment

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

You shouldn't remove this option

"label": "Categories",
"multi": true,
"multi": false,
Copy link
Owner

Choose a reason for hiding this comment

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

This is also important or you will see only a specific category in the dashboard

"name": "categories",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(qbittorrent_torrents_count{server=\"$server\"},category)",
"query": "label_values(qbittorrent_torrents_count,category)",
Copy link
Owner

Choose a reason for hiding this comment

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

This shouldn't be removed either

@@ -1045,6 +969,6 @@
"timezone": "",
"title": "Qbittorrent",
"uid": "eKyTETFMk",
"version": 58,
"version": 1,
Copy link
Owner

Choose a reason for hiding this comment

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

It's not a good idea to reset the dashboard version

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.

2 participants