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

Remove eventrouter special treatment #16

Open
james-callahan opened this issue Aug 9, 2021 · 1 comment
Open

Remove eventrouter special treatment #16

james-callahan opened this issue Aug 9, 2021 · 1 comment

Comments

@james-callahan
Copy link
Contributor

eventrouter (https://github.com/heptiolabs/eventrouter) currently has special treatment in the promtail config (

- match:
selector: '{app="eventrouter",stream="stdout"}'
stages:
- json:
expressions:
namespace: event.metadata.namespace
ts: event.lastTimestamp
- labels:
namespace: ""
- timestamp:
format: RFC3339
source: ts
)

Is there a way we can remove that?

e.g. have eventrouter (or something similar) log directly to promtail itself.

@james-callahan
Copy link
Contributor Author

The new grafana-agent release might be suitable: https://github.com/grafana/agent/releases/tag/v0.23.0

The new eventhandler integration allows users to watch for changes to Event objects in a Kubernetes cluster and ship them as log entries.

docs: https://grafana.com/docs/agent/latest/configuration/integrations/integrations-next/eventhandler-config/

However note for now:

Pipelines and relabel configuration are not yet supported, but these features will be added soon. You should use the job=eventhandler cluster=... labels to query your events (you can then use LogQL on top of the result set).

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

1 participant