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

[connector/count] count metrics value always 1 #35115

Closed
jxplus opened this issue Sep 10, 2024 · 3 comments
Closed

[connector/count] count metrics value always 1 #35115

jxplus opened this issue Sep 10, 2024 · 3 comments

Comments

@jxplus
Copy link

jxplus commented Sep 10, 2024

Component(s)

connector/count

Describe the issue you're reporting

version : count-connect v0.108.0

i use count-connector to statistic logs-to-metric, i send logs number 2890,but the value is always 1, like this:
···
app_log_count{,level="DEBUG"} 1
app_log_count{level="INFO"} 1
app_log_count{level="ERROR"} 1
···

my config is:
···
connectors:
count/log:
logs:
app.log.count:
description: The number of logs from each level.
attributes:
- key: level
···

@jxplus jxplus added the needs triage New item requiring triage label Sep 10, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@djaglowski
Copy link
Member

This connector emits values with delta temporarily, which sometimes is mistaken as being unintentional. You may be able to use the deltatocumulative processor to aggregate the metrics.

@crobert-1 crobert-1 removed the needs triage New item requiring triage label Sep 10, 2024
@jxplus
Copy link
Author

jxplus commented Sep 11, 2024

This connector emits values with delta temporarily, which sometimes is mistaken as being unintentional. You may be able to use the deltatocumulative processor to aggregate the metrics.

ok,thanks,I will try it。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants