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

filterx: update_metrics() and flatten() perf improvements #365

Merged
merged 13 commits into from
Nov 17, 2024

Conversation

alltilla
Copy link
Member

@alltilla alltilla commented Nov 6, 2024

No description provided.

@alltilla alltilla force-pushed the update-metrics-perf-improvement branch 3 times, most recently from 4619ede to f3ff24c Compare November 6, 2024 09:18
@MrAnno MrAnno self-requested a review November 7, 2024 09:22
lib/stats/stats-prometheus.c Show resolved Hide resolved
lib/stats/stats-prometheus.c Show resolved Hide resolved
lib/filterx/object-metrics-labels.c Show resolved Hide resolved
lib/filterx/object-metrics-labels.c Outdated Show resolved Hide resolved
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Getting it has a performance overhead,
we should minimize it.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
This class will be used for performance optimization
purposes. When we know beforehand that we are
constructing a label set for an upcoming
update_metric() call, we can gather the labels
to a specialized container, directly as
`StatsClusterLabel`s.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
…el()

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
alltilla added a commit to alltilla/axosyslog that referenced this pull request Nov 15, 2024
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the update-metrics-perf-improvement branch from f3ff24c to caadec4 Compare November 15, 2024 16:24
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
…order

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
It reduced the number of malloc calls.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the update-metrics-perf-improvement branch from caadec4 to db02c39 Compare November 15, 2024 16:27
@MrAnno MrAnno merged commit 0b99654 into axoflow:main Nov 17, 2024
22 checks passed
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

Successfully merging this pull request may close these issues.

2 participants