cloudfoundry / capi-release

Bosh Release for Cloud Controller and friends
Apache License 2.0
24 stars 101 forks source link

Update prom_scraper_config to add origin: cc label #426

Closed Samze closed 5 months ago

Samze commented 5 months ago

Resolves https://github.com/cloudfoundry/cloud_controller_ng/issues/3842

This add the origin: cc label to every prom metric emitted by cc.

Before:

origin:"" eventType:ValueMetric timestamp:1716927345188339944 deployment:"cf-593c65d5b217b0a112ad" job:"control" index:"66379c89-3e02-4322-9555-004ce8183ea5" ip:"10.0.4.7" tags:<key:"instance_id" value:"66379c89-3e02-4322-9555-004ce8183ea5" > tags:<key:"product" value:"Small Footprint VMware Tanzu Application Service" > tags:<key:"source_id" value:"cloud_controller_ng" > tags:<key:"system_domain" value:"xxx" > valueMetric:<name:"cc_requests_outstanding_total" value:1 unit:"" >

After:

origin:"cc" eventType:ValueMetric timestamp:1718239416878685187 deployment:"cf-a31da169de4fe97cda42" job:"cloud_controller" index:"27c6545a-6ca1-4dc1-acb6-70e5ce5e7893" ip:"10.0.4.12" tags:<key:"instance_id" value:"27c6545a-6ca1-4dc1-acb6-70e5ce5e7893" > tags:<key:"product" value:"VMware Tanzu Application Service" > tags:<key:"source_id" value:"cloud_controller_ng" > tags:<key:"system_domain" value:"xxx" > valueMetric:<name:"cc_requests_outstanding_total" value:1 unit:"" >