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

question: *multiple* blocky *same* promethus *multiple* grafana dashboards #1470

Open
bcookatpcsd opened this issue May 3, 2024 · 5 comments
Labels
👋 help wanted Extra attention is needed

Comments

@bcookatpcsd
Copy link

This may be a me problem..

(I'm good with anything being incomplete or incorrect..)

https://grafana.com/grafana/dashboards/13768-blocky/ - I think this is the blocky dashboard..

image

Where do I tell the dashboard what prometheus job_name to use..

(or is that not how it works?)

I got one dashboard working.. but I don't see where I told it to use which blocky target.. and I don't seem to be able to..

If I wanted to have a single prometheus and grafana work with multiple blocky.. is that not possible?

First dashboard worked, but second dashboard is the same as the first..

Thank you in advance.

@bcookatpcsd
Copy link
Author

Looking through the json of the 13768..

"expr": "sum(up{job="blocky"})",

I tried making one blocky0245 and the other blocky48247

didn't seem to do anything..

@bcookatpcsd
Copy link
Author

grafana config:

[panels]
disable_sanitize_html = true

docker env:

GF_PANELS_DISABLE_SANITIZE_HTML=TRUE

if I put a prometheus exporter on each blocky.. then I just have to add the exporter as a datasource, then I can have multiple dashboards

image

@mschirrmeister
Copy link

mschirrmeister commented May 9, 2024

What do you expect to get by doing sum(up{job="blocky01"})? You will get a straight line with the value of 1.

Why do you want for each blocky instance an own dashboard? All in one might be more helpful, which works out of the box.

The blocky provided dashboard is using the variable $job which has the query label_values(blocky_blocking_enabled,job). You can see that in the setting of the dashboard. That means you should by default see data from all your instances. If you don't see all, do you maybe have modified the dashboard?

If you do not use the variable in the query in your panel, you will also get everything. For example, if you use a query like this sum(rate(blocky_query_total[5m])) * 60, you will get the data for this metric, no matter what server it comes from.

If you really want to filter, you can either define your own variables and use those, or you filter in the queries directly.

For example,

create a variable myjob like this

label_values(blocky_blocking_enabled{job=~"blocky01|blocky02"},job)

and then create the following query

sum(rate(blocky_query_total{job=~"$myjob"}[5m])) * 60

Or if you want to create a panel with a custom filter, create a query like this.

sum(rate(blocky_query_total{job=~"blocky01|blocky02"}[5m])) * 60

@bcookatpcsd
Copy link
Author

image

Nothing looks glaringly wrong.. I did want to ask questions about the 'request duration' (upstream)

Is that the time from the various conditional and the upstream combined? or just the upstream and nothing to do with the conditionals?

@niouniou49
Copy link

sorry but i dont see what change i should do for the buttons to appear properly.
I have modified the grafana config file 'grafana.ini' with adding ;disable_sanitize_html = true
Screenshot 2024-05-16 at 13 54 23
but not effect, i still have the same issue with no buttons but text... all the rest works well
some more help required please

@kwitsch kwitsch added the 👋 help wanted Extra attention is needed label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants