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

How to get events to Prometheus/Grafana? #160

Open
taemon1337 opened this issue Feb 8, 2024 · 2 comments · May be fixed by #177
Open

How to get events to Prometheus/Grafana? #160

taemon1337 opened this issue Feb 8, 2024 · 2 comments · May be fixed by #177

Comments

@taemon1337
Copy link

I've installed via Helm Chart with the following values.yaml:

metrics:
  enabled: true
config:
  logLevel: error
  logFormat: json
  receivers:
    - name: "dump"
      stdout:
        deDot: true

so my question is how can I get the events into prometheus?

The metrics exposed are just events_sent, events_discarded, and the go default ones, which makes sense.

There is no prometheus dump or way to get events into the metrics. I get that these are events so maybe they just can't be exported as metrics, but I'm trying to get the Dashboard up and running.

Any help is appreciated :)

@AeroNotix
Copy link

You'd have to write a prometheus dump, or use the webhook exporter to convert them to a metric in the service which receives the webhooks.

@vanhoutenbos
Copy link

I use the bitnami chart that has a built in metric & servicemonitor: https://github.com/bitnami/charts/tree/main/bitnami/kubernetes-event-exporter

metrics:
  enabled: true 
  serviceMonitor:
    enabled: true

But I am running into the same issue, i want to see the 'BackOff: restarting failed container' events in my prometheus environment

@cherylfbrown cherylfbrown linked a pull request Apr 11, 2024 that will close this issue
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 a pull request may close this issue.

3 participants