From 3bba8628b44ac319b83b017d1e0fd97a7215a801 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Feb 01 2021 16:23:35 +0000 Subject: prometheus/config: add a second Zincati target This adds another Fedora CoreOS node (Zincati agent) to scrape. --- diff --git a/prometheus/prometheus-config.yaml b/prometheus/prometheus-config.yaml index 21b3ae9..878a903 100644 --- a/prometheus/prometheus-config.yaml +++ b/prometheus/prometheus-config.yaml @@ -1,7 +1,6 @@ - +--- global: - scrape_interval: 15s # By default, scrape targets every 15 seconds. - + scrape_interval: 15s # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). external_labels: @@ -9,17 +8,15 @@ global: remote_write: - url: "http://promscale:9201/write" + remote_read: - url: "http://promscale:9201/read" -# A scrape configuration containing exactly one endpoint to scrape: -# Here it's Prometheus itself. + scrape_configs: # The job name is added as a label `job=` to any timeseries scraped from this config. - job_name: 'prometheus' - # Override the global default and scrape targets from this job every 5 seconds. scrape_interval: 5s - static_configs: - targets: ['localhost:9090'] - job_name: 'bodhi' @@ -42,4 +39,11 @@ scrape_configs: - targets: ['fcos-31-metrics-cdn.lucabruno.net'] metrics_path: '/bridge' params: - selector: ['zincati'] \ No newline at end of file + selector: ['zincati'] + - job_name: 'lbruno-fcos-21-zincati' + scheme: 'https' + static_configs: + - targets: ['fcos-21-metrics-cdn.lucabruno.net'] + metrics_path: '/bridge' + params: + selector: ['zincati']