Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant