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

New metric holder #411

Merged
merged 35 commits into from
Jan 31, 2024
Merged

New metric holder #411

merged 35 commits into from
Jan 31, 2024

Conversation

kirillov6
Copy link
Collaborator

Description

Features:

  • No dependency on action-plugins metrics
  • Easy expandable
  • Once in a certain period of time, all metrics that haven't been used since the last update will be deleted

Fixes #410

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Attention: 134 lines in your changes are missing coverage. Please review.

Comparison is base (0542b7a) 70.16% compared to head (27f1340) 70.24%.
Report is 5 commits behind head on master.

❗ Current head 27f1340 differs from pull request most recent head 7cd0ab8. Consider uploading reports for the commit 7cd0ab8 to get more accurate results

Files Patch % Lines
metric/held_gauge.go 0.00% 26 Missing ⚠️
metric/held_metric.go 79.38% 18 Missing and 2 partials ⚠️
metric/held_histogram.go 0.00% 15 Missing ⚠️
pipeline/processor.go 31.81% 15 Missing ⚠️
metric/holder.go 60.00% 9 Missing and 1 partial ⚠️
pipeline/pipeline.go 86.76% 9 Missing ⚠️
fd/util.go 40.00% 5 Missing and 1 partial ⚠️
metric/controller.go 88.88% 6 Missing ⚠️
metric/held_counter.go 82.35% 3 Missing ⚠️
pipeline/antispam/antispammer.go 50.00% 3 Missing ⚠️
... and 13 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #411      +/-   ##
==========================================
+ Coverage   70.16%   70.24%   +0.07%     
==========================================
  Files         112      116       +4     
  Lines       11838    11845       +7     
==========================================
+ Hits         8306     8320      +14     
+ Misses       3024     3023       -1     
+ Partials      508      502       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Yaroslav Kirillov added 6 commits July 7, 2023 16:35
# Conflicts:
#	pipeline/batch.go
#	pipeline/pipeline.go
# Conflicts:
#	fd/file.d.go
#	pipeline/batch.go
#	pipeline/pipeline.go
#	pipeline/processor.go
@kirillov6 kirillov6 marked this pull request as ready for review July 31, 2023 07:27
Yaroslav Kirillov added 3 commits August 25, 2023 15:07
# Conflicts:
#	plugin/input/http/http.go
#	plugin/input/journalctl/journalctl.go
#	plugin/input/journalctl/reader.go
metric/controller.go Outdated Show resolved Hide resolved
metric/holder.go Outdated Show resolved Hide resolved
metric/holder.go Outdated Show resolved Hide resolved
Yaroslav Kirillov added 3 commits August 28, 2023 11:39
# Conflicts:
#	pipeline/pipeline.go
#	plugin/input/http/http.go
xtime/xtime.go Outdated Show resolved Hide resolved
xtime/xtime.go Outdated Show resolved Hide resolved
xtime/xtime.go Outdated Show resolved Hide resolved
# Conflicts:
#	pipeline/metrics_holder.go
# Conflicts:
#	plugin/input/file/file.go
#	plugin/input/file/provider.go
#	plugin/output/elasticsearch/elasticsearch.go
vadimalekseev and others added 8 commits January 12, 2024 13:34
* Some performance optimizations

* Rename RenameReleaser -> MetricDeleter

* Benchmark prometheus.MetricVec

* Replace parallel benchmark with the loop

* Fix string copy

* Add tests for the HeldMetric

* Fix naming & build (#569)

* Fix naming & build

* Rollback comment

* Update MetricHolder test

---------

Co-authored-by: Yaroslav Kirillov <kirillov.y6@gmail.com>
# Conflicts:
#	plugin/input/kafka/kafka.go
# Conflicts:
#	plugin/input/file/file.go
#	plugin/input/file/provider.go
#	plugin/input/file/worker_test.go
# Conflicts:
#	plugin/output/kafka/kafka.go
@kirillov6 kirillov6 merged commit 10521d4 into master Jan 31, 2024
8 checks passed
@kirillov6 kirillov6 deleted the 410-metricholder branch January 31, 2024 06:59
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.

Feature: New Metric Holder
4 participants