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

Feature Request - Support Grafana's log format #4265

Open
amnonh opened this issue Feb 27, 2025 · 3 comments
Open

Feature Request - Support Grafana's log format #4265

amnonh opened this issue Feb 27, 2025 · 3 comments

Comments

@amnonh
Copy link

amnonh commented Feb 27, 2025

Looking at the alert's history is a known missing part. Grafana added support for using Loki to store and retrieve alert history using a log.

It would be possible to use the functionality for external alerts by supporting the configuration of the log format for alerts.

@grobinson-grafana
Copy link
Collaborator

I'm not 100% sure I understand the feature request as you mentioned configuration of the log format for alerts, which I didn't understand. But this feature in Grafana doesn't live in the Alertmanager, it's in their ruler, so it happens before the Alertmanager.

@amnonh
Copy link
Author

amnonh commented Feb 27, 2025

Grafana supports Alert history only to alerts that Grafana generates, but they do it by sending a log to Loki.
I suggest piggybacking their mechanism by sending log messages with formatted information to the log.

@grobinson-grafana
Copy link
Collaborator

I suspect this could be implemented as an OTLP logs exporter, and then any log service that supports OTLP could ingest these events. If you need this today, what you can do is build a webhook that receives alerts from Alertmanager and sends them to Loki's Push API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants