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

Using Grafana UI with standard generated prometheus rules #942

Closed
bubu11e opened this issue Oct 9, 2023 · 2 comments
Closed

Using Grafana UI with standard generated prometheus rules #942

bubu11e opened this issue Oct 9, 2023 · 2 comments

Comments

@bubu11e
Copy link

bubu11e commented Oct 9, 2023

Hi.

First, thanks for all the good work you've made with this project.

I am trying to use your project, but i would like to keep Grafana for a UI as my users are used to it.

I also would like to stick with the standard generate rules (not the one with the --generic-rules options) as the resulting rules offer way more possibilities (like dynamic grouping).

I have been trying to rebuild dashboards similar to your interface inside Grafana and managed to get some first results as shown by the following screen captures:
Screenshot 2023-10-09 at 15 57 36
Screenshot 2023-10-09 at 15 59 17

However, I'm encountering some issues with missing information from the background Prometheus data source:

  • The calculation window
  • The availability target
  • The success or errors PromQL request
  • The total PromQL request

All this information is available from the API you provide and could probably be exploited through a JSON data source. However, to keeps things simple for my user, I would like to avoid doing it.

So I post this message here to know if you have some ideas or hints to help me achieve my goal ?

Regards,

@metalmatze
Copy link
Member

Hey, I get what you want (and I want it myself), however, there are some limitations in the Grafana UI that will make this rather hard to implement (otherwise I would have).
For example, the grouping uses dynamic labels and we would need Grafana to support dynamic tooltips (based on queries) which is something they can't do right now. (I wanted to open an issue for a long time).

Until we can fix these things upstream in Grafana, I think the best idea is to use the generic rules and for some SLOs that use grouping use the UI directly.

@bubu11e
Copy link
Author

bubu11e commented Dec 11, 2023

Hi, thanks for your answer.

@bubu11e bubu11e closed this as completed Dec 11, 2023
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

No branches or pull requests

2 participants