-
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
GoogleManagedPrometheus not having the Resource Attributes as Resource/Metric labels in Cloud Monitoring Console #24422
Comments
So in the below code But is there a better way to automatically add the resource attributes to metrics labels instead of manually doing it? I came across a property
|
After #24392, you will be able to use |
duplicate of #21654 |
@avijitsarkar123 Can you confirm your issue has been resolved? If so, you can close this issue. |
/label -needs-triage |
/label waiting-for-author |
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 Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Closing. You can use metric.resource_filters on the GMP exporter. |
Component(s)
exporter/googlemanagedprometheus
Describe the issue you're reporting
I have the receiver
k8s_cluster
collecting k8s cluster metrics, I am exporting them togooglemanagedprometheus
, I have also added thelogging
exporter that shows the resource attributes for the metrics but in the GCP Cloud Monitoring console the resource labels are only having: project_id,location,cluster, namespace, job, instanceI tried adding them using
transform
but didn't work, this is what my otel pipeline looks like:In the below, if I replace
attributes["k8s.pod.name"]
with some text likeTEST
then it shows up in the GCP Cloud Monitoring as label but when trying to read from resource attributes its not working.My requirement is just to have all the resource attributes as metrics/resource labels in GCP Cloud Monitoring for those metrics.
The text was updated successfully, but these errors were encountered: