From a4a81535832edea8f83b2ee3ff2006985b7005d7 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Wed, 9 Apr 2025 09:34:20 -0400 Subject: [PATCH] Add prometheus self scraping target This will make prometheus scrape its own metrics. This can be useful to verify basic functionality of prometheus or to have some known metrics to work with in other tests. For example we use the prometheus_ready metric to check basic functionality of the CLI part of the observabilityclient here https://opendev.org/openstack/python-observabilityclient/src/branch/master/observabilityclient/tests/functional/test_cli.py#L129 Change-Id: Icfaba3bec04a6ef48b0365566b757fb8261c65c4 --- devstack/files/prometheus.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack/files/prometheus.yml b/devstack/files/prometheus.yml index ad516d3..c124ae0 100644 --- a/devstack/files/prometheus.yml +++ b/devstack/files/prometheus.yml @@ -5,6 +5,7 @@ scrape_configs: - job_name: "node" static_configs: - targets: ["localhost:9882"] + - targets: ["localhost:9090"] # prometheus target - targets: ["localhost:9100"] # node_exporter target # labels: # fqdn: "controller" # node_exporter fqdn