metrics-discovery-release

module
v3.2.24+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0

README

DEPRECATED

This bosh release is deprecated by RFC 0022. This will be removed from CF Deployment after Nov 23, 2023 and will be archived after Jan 23, 2024.

Metrics Discovery Release

The Metrics Discovery Release is intended to give release authors an easy way to discover Prometheus Exposition formatted metrics endpoints in their Cloudfoundry Deployments. It consists of two components: The Metrics Discovery Registrar and the Scrape Config Generator.

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

architecture

Metrics Discovery Registrar

The Metrics Discovery Registrar publishes scrape configs to CF NATS to be consumed by a Scrape Config Generator.

Configuration

Interested jobs should provide a metric_targets.yml file and place it in the location described by the targets_glob property -- by default var/vcap/data/*/metric_targets.yml.

The metric_targets.yml should provide information about the endpoint to be scraped using the Prometheus format.

Example metric_targets.yml

Scrape Config Generator

The Scrape Config Generator subscribes to CF NATS and consumes published metric targets. It aggregates the metric targets and saves a Prometheus-formatted scrape config to the path defined by the scrape_config_file_path property -- by default /var/vcap/data/scrape-config-generator/scrape_configs.yml

The scrape config will be modified as metric targets come and go. Interested metric scrapers should watch the scrape config file for changes.

Metrics agent

An agent that proxies to components with a prom_scraper_config.yml and receives metrics from the Forwarder Agent and exposes them on a prometheus-scrapable endpoint. More information can be found in the docs

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL