Skip to content

Conversation

@justonedev1
Copy link
Collaborator

-aggregating metrics so we don't flod influxdb
-changed json to influxdb line format to properly handle tags

@justonedev1 justonedev1 requested a review from knopers8 as a code owner May 2, 2025 15:20
@justonedev1 justonedev1 force-pushed the OCTRL-1003 branch 3 times, most recently from 460e7b4 to 19c9a33 Compare May 2, 2025 15:34
Copy link
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I see no fundamental problems, but I would propose some readability improvements. Also, please add a markdown file in docs summarizing the monitoring system in ECS (design overview, configuration and usage).

@justonedev1 justonedev1 requested a review from knopers8 May 5, 2025 14:08
@justonedev1
Copy link
Collaborator Author

I will add docs as next step, I just wanted to address all the remarks, so you can take a look. I also resolved some conversations that I addressed in the fixup commit

@knopers8
Copy link
Collaborator

knopers8 commented May 5, 2025

I will add docs as next step, I just wanted to address all the remarks, so you can take a look. I also resolved some conversations that I addressed in the fixup commit

Thanks, the fixes look good.

docs/metrics.md Outdated
Comment on lines 157 to 160
types of metrics. This means that if you send metrics with
same measurement name and tags, but different timestamps (unix in nanoseconds)
but difference under one second all of them will be aggregated into
one bucket, where timestamp is rounded down at seconds.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that if you send metrics with
same measurement name and tags, but different timestamps (unix in nanoseconds)
but difference under one second all of them will be aggregated into
one bucket, where timestamp is rounded down at seconds.

I can't understand this sentence, could you rephrase?

docs/metrics.md Outdated
Comment on lines 161 to 162
If either measurement or tags are different, than the metrics
wont' be grouped but every one of these metrics will be separate. If metric
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If either measurement or tags are different, than the metrics
wont' be grouped but every one of these metrics will be separate. If metric
If either measurement or tags are different than the metrics
won't be grouped, but every one of these metrics will be separate. If metric

docs/metrics.md Outdated
Comment on lines 206 to 210
scraping requests from `http.Server` endpoint. As the http endpoint is called
different goroutine than the one processing event loop, we use another two channels:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
scraping requests from `http.Server` endpoint. As the http endpoint is called
different goroutine than the one processing event loop, we use another two channels:
scraping requests from `http.Server` endpoint. As the http endpoint is called
by a different goroutine than the one processing event loop, we use another two channels:

@justonedev1 justonedev1 requested a review from knopers8 May 8, 2025 14:02
@justonedev1
Copy link
Collaborator Author

By the way, I have some fixup commits, so please don't merge, I need to remove them before.

Michal Tichák added 2 commits May 8, 2025 17:32
-aggregating metrics so we don't flod influxdb
-changed json to influxdb line format to properly handle tags
@justonedev1 justonedev1 merged commit c3464f8 into master May 8, 2025
2 checks passed
@justonedev1 justonedev1 deleted the OCTRL-1003 branch May 8, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants