Scraping Metrics with Sensor
The groundcover sensors spread across your environment can be used to scrape metrics, to refrain from having a large load on a single scraper and to minimize cross-AZ traffic.
Enabling Metrics-Scraping on Sensor
To enable scraping using the sensor, use the following values:
agent:
sensor:
metricIngestor:
scraperEnabled: trueNotice that if custom-metrics pod-specific metrics scraping was previously in use, it should be disabled in order to refrain from having the same metrics scraped twice. To do that, remove the scrape jobs that sensor performs from the dedicated custom-metrics pod configuration.
Configuring Scrape Jobs
Sensor's scrape jobs are configured in its sensor-scrape-configuration configmap, under metrics-scrape-config.yaml. If you're running sensor on a node, it can be found at /opt/groundcover/scrape-config/metrics-scrape-config.yaml.
This configuration file is fully compatible with prometheus scrape job syntax - more can be found here.
It's best practice to use the sensor to scrape pod-specific metrics, to minimize cross-AZ traffic.
Using the sensor to scrape non-pod-specific metrics is discouraged, because it will result in multiple sensors scraping the same resource.
The default configuration contains discovery and scraping of pod-specific metrics:
Last updated
