-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Hostmetrics Load Scraper does not have even 1 Label - awsemf
exporter filtering depends on 1+ labels
#4739
Comments
This is a bug will be fixed in emfexporter. :)
We can't add this dimension to metrics. It's an extra cost to users. |
@alolita I would like to look into this bug |
@NathanielRN are you saying that no metrics without dimensions are being published to cw? From code https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/awsemfexporter/metric_translator.go#L239-L339 I think that is happening. |
@sethAmazon No sorry. From the issue description above I explain that although yes metrics without dimensions are normally being published to CW, if I use the |
I think this is related to the same issue I am facing as well. We have a bunch of metrics that have no labels/dimensions that we cannot seem to get into Cloud Watch either. I linked my ticket, trying to get confirmation if it is indeed the same issue. |
The call in the test was still passing in a string instead of []string
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Is your feature request related to a problem? Please describe.
The
hostmetrics
cpu
scraper will produce a metric like this (using the file exporter):but the
hostmetrics
load
scraper will produce a metric like this:It has no labels. Without this label, the
awsemf
exporter will produce the follow output for the CloudWatch (CW) backend for thecpu
metric:but will produce this for
load
While both of these are valid CW metrics, the former would show up as
Metrics with no Dimensions
in the AWS CW backend.Then, if we want to use the feature from the
awsemf
exporter that allows you to filter the metrics it sends by their dimensions, we can't do it. Because without even one dimension, we can't do the following:Describe the solution you'd like
If it makes sense for exporters to depend on these labels, we could update the hostmetrics
load_scraper.go
https://github.com/open-telemetry/opentelemetry-collector/blob/ffda9d5b948bcac77e8b66d94962b2da68da82ba/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper.go#L74-L79
to add at least 1 label:
which the
cpu_scarper.go
already does:https://github.com/open-telemetry/opentelemetry-collector/blob/ffda9d5b948bcac77e8b66d94962b2da68da82ba/receiver/hostmetricsreceiver/internal/scraper/cpuscraper/cpu_scraper.go#L82-L93
Describe alternatives you've considered
Maybe the
awsemfexporter
should add a "default" dimension to every metric it receives. So for thecpu
metric, in addition to[cpu, state]
which correspond to(cpu0, system)
, it could also add aname
dimension so that[cpu, state, name]
correspond to(cpu0, system, system.cpu.time)
?That way
load
would have at least[name]
which corresponds to(system.cpu.load_average.1m)
Additional context
No additional context.
The text was updated successfully, but these errors were encountered: