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

Update prom_scraper_config to add origin: cc label #426

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

Samze
Copy link
Contributor

@Samze Samze commented Jun 12, 2024

Resolves cloudfoundry/cloud_controller_ng#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:"" >
  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the develop branch

  • I have run CF Acceptance Tests on bosh lite

@philippthun philippthun merged commit 7f773d8 into cloudfoundry:develop Jun 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing origin in prometheus metrics
2 participants