-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Prometheus Remote Write Exporter] Forward metrics labels #10115
Comments
cc @Aneurysm9 as code owner |
I managed to solve my specific issue by using a |
@clouedoc is this still an issue with Prometheus Remote Write Exporter or we can close it? |
@dmitryax This is still an issue with Prometheus Remote Write Exporter that should be addressed, at least in the docs. |
Hi, this is now done using the Please let us know if |
Could this be an issue where there is an undocumented feature of the Prometheus Remote Write exporter (through the exporter helper) that does the same thing as the Prometheus Exporter? I recently ran into the same issue where I needed certain labels that were appearing as resource attributes but were not getting properly added to the actual metrics as data point attributes (read that as Prometheus labels). I was able to add the same thing as @clouedoc did for the Prometheus Exporter right on the Prometheus Remote Writer. Namely:
The problem with the Target_info metric is it does not actually associate with metrics (such as system_cpu_utilization from the hostmetrics receiver) in any way, which makes it impossible to see how the CPU is doing for a particular host. |
@jack78901 really interesting finding; this removes the need for a Prometheus intermediate server altogether. Thank you for reporting it. @gouthamve I have to admit that I have a hard time understanding what |
@clouedoc @gouthamve do we still need any doc updates to highlight this config option or the ticket can be closed? |
Thanks @clouedoc |
Is your feature request related to a problem? Please describe.
I want to be able to cluster my metrics by host in Prometheus.
On Prometheus' side, I do not get a
host
label to select:I only get a
job
tag.Previously, by using Datadog and the
otlp
exporter, I could aggregate metrics by host name, deployment version, etc.I believe that OTLP tags are not getting forwarded because of the Prometheus Remote Write exporter.
Describe the solution you'd like
I want to get the following labels to be forwarded to Prometheus:
service.name
deployment.environment
service.version
These will allow me to see if a specific version of my program is using more memory, and when.
Describe alternatives you've considered
Additional context
Here is my configuration:
The text was updated successfully, but these errors were encountered: