Should we export only container events? #258
LorenzoTettamanti
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone @siddh34 @lorebrada ,
I was working on a new update for the identity service, and I noticed that there were a lot of events while I was testing the monitoring in different scenarios. In particular, I noticed that even if I was generating a very small amount of events, the metric cortexbrain_events_total showed a lot of events per second. After digging into the system a little bit, I guess we're also exporting the host events, so this is a potential issue that we should probably take into consideration for future updates
Here's the proof:
vs
The same appears with all the other metrics.
Should we discard metrics that are not associated with a container_name? What about the host events?
Here are some paths we might take into consideration:
Path 1:
We drop host metrics when we construct the metadata in userspace; we lose the underlying OS metrics, and we only monitor containers.
Pros: fewer events, less pressure on memory and CPU
Cons: we lose the host metrics or the unresolved containers
Path 2:
We don't drop the host metrics, and we divide the pipeline into two dedicated parts; for example, pipeline A for container metrics and pipeline B for host metrics
Pros: we don't lose the underlying host metrics or the unresolved containers
Cons: more events, more CPU and memory pressure; we might introduce some trade-offs and metadata that we need to discuss
In my opinion, we should follow Path 2, but I'm open to discussing other options and trade-offs.
All reactions