-
Notifications
You must be signed in to change notification settings - Fork 101
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
Help deploying Grafana Dashboards using Generic Rules #962
Comments
Maybe it would be great to specify which image/chart you are using 🙄. |
Oh sorry about that, I am just using the |
Are you using it correctly 🤔? I got same error only if I use it wrongly, like: $ docker run -ti ghcr.io/pyrra-dev/pyrra:v0.7.0 --generic-rules
pyrra: error: unknown flag --generic-rules If I use it in correct way, then there is no such an error: $ docker run -ti ghcr.io/pyrra-dev/pyrra:v0.7.0 generate --generic-rules
level=info ts=2023-10-25T13:27:24.404827723Z caller=main.go:142 msg="using Prometheus" url=http://localhost:9090 |
Yup, looks like that was it. I have an issue with the structure of my
but at least was able to progress, thanks! |
The structure should look like: apiVersion: pyrra.dev/v1alpha1
kind: ServiceLevelObjective
metadata:
name: loki-availability
namespace: monitoring
labels:
release: k8s
role: alert-rules
spec:
description: Loki availability based on duration of requests
target: "99"
window: 7d
indicator:
ratio:
errors:
metric: loki_request_duration_seconds_count{namespace="monitoring", job="loki-querier", status_code=~"5[0-9]{2}"}
total:
metric: loki_request_duration_seconds_count{namespace="monitoring", job="loki-querier"} If you are happy with the solution of this issue, then you can proceed with closing this ticket. |
Awesome, thanks! Will close now. |
Glad you found a solution! |
Hi,
First and foremost, just wanted to say that this is a fantastic project and that I thoroughly appreciate all of the work that has gone into this so far!
I was setting up a POC using the example manifests which is working great so far.
I also wanted to get the Grafana Dashboards working however I am relatively new to Grafana and feel like I am missing something obvious. I followed your instructions and created a ConfigMap containing the Generic Rules definition. I the tried to mount that ConfigMap as a volume inside the pyrra kuberentes Deployment and pass it the
--generic-rules
arg along with the path to the file however, thepyrra
image doesn't seem to like that flag and is Crash Looping with the following message:Am I going about this the correct way?
The text was updated successfully, but these errors were encountered: