Skip to content

Changes for Prometheus3 - BBS config for cf_exporter and custom.rules.yml#582

Merged
benjaminguttmann-avtq merged 5 commits intocloudfoundry:masterfrom
cloud-gov:bbs3
Jan 13, 2026
Merged

Changes for Prometheus3 - BBS config for cf_exporter and custom.rules.yml#582
benjaminguttmann-avtq merged 5 commits intocloudfoundry:masterfrom
cloud-gov:bbs3

Conversation

@cweibel
Copy link
Copy Markdown
Contributor

@cweibel cweibel commented Jan 12, 2026

Problems:

  • In order to retrieve the metric cf_application_instances_running the cf_exporter needs to be configured to connect to BBS. cf_exporter already supports scraping from BBS if certain environment variables are set, however the spec that configures this on the Prometheus side was missing.
  • Custom rules are hard coded to look in /var/vcap/jobs/prometheus2/config/custom.rules.yml in prometheus.yml even though the file is rendered correctly to /var/vcap/jobs/prometheus/config/custom.rules.yml. This results in the custom rules file being ignored. Referenced in issue Prometheus3 custom_rules hardcoded to prometheus2 path #580

Solutions:

  • Add new cf_exporter.bbs.ca, cf_exporter.bbs.cert, cf_exporter.bbs.key which are supplied from CF credhub variable diego_bbs_client.ca, diego_bbs_client.certificate, diego_bbs_client.private_key. When combined with diego_bbs_api_url these are the 4 values required to have the cf_exporter scrape the BBS endpoint.
  • Fixing the hard coded path in prometheus.yml to point to the new job location with the renaming of jobs from Prometheus2 to Prometheus3

Copy link
Copy Markdown
Contributor

@benjaminguttmann-avtq benjaminguttmann-avtq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ,thank you @cweibel

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Jan 13, 2026
@benjaminguttmann-avtq benjaminguttmann-avtq merged commit d189332 into cloudfoundry:master Jan 13, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants