Skip to content

Commit cf085b9

Browse files
committed
Adds openstack exporter scrape interval
1 parent 68b8ea1 commit cf085b9

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

etc/kayobe/kolla/config/prometheus/prometheus.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ groups:
77
rules:
88

99
- alert: PrometheusTargetMissing
10-
expr: up{job!="redfish-exporter-seed"} == 0
10+
expr: up{job!="redfish-exporter-seed", job!="redfish-exporter-collectlog"} == 0
1111
for: 5m
1212
labels:
1313
severity: critical

etc/kayobe/kolla/globals.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ prometheus_blackbox_exporter_endpoints_kayobe:
5656
- endpoints:
5757
- "pulp:http_2xx:{{ pulp_url }}/pulp/api/v3/status/"
5858
enabled: "{{ seed_pulp_container_enabled | bool }}"
59+
60+
prometheus_openstack_exporter_interval: "{{ stackhpc_prometheus_openstack_exporter_interval }}s"

etc/kayobe/stackhpc-monitoring.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
###############################################################################
44
# Prometheus server configuration
55

6-
stackhpc_prometheus_query_lookback_delta: "{{ [redfish_exporter_scrape_interval, stackhpc_os_capacity_scrape_interval, 300] | max }}s"
6+
# How far prometheus will look back in time to find a metric.
7+
stackhpc_prometheus_query_lookback_delta: >-
8+
{{ [stackhpc_redfish_exporter_scrape_interval | int,
9+
stackhpc_os_capacity_scrape_interval | int,
10+
stackhpc_prometheus_openstack_exporter_interval | int,
11+
300] | max + 30 }}s
712
813
###############################################################################
914
# Alert configuration
@@ -55,15 +60,18 @@ stackhpc_os_capacity_scrape_interval: 900
5560
# Whether the redfish exporter is enabled.
5661
stackhpc_enable_redfish_exporter: false
5762

63+
# How often to scrape the BMCs in seconds.
64+
stackhpc_redfish_exporter_scrape_interval: "{{ [8 * groups['redfish_exporter_targets'] | length, 300] | max }}"
65+
5866
# Credentials
5967
redfish_exporter_default_username: "{{ ipmi_username }}"
6068
redfish_exporter_default_password: "{{ ipmi_password }}"
6169

6270
# The address of the BMC that is used to query redfish metrics.
6371
redfish_exporter_target_address: "{{ ipmi_address }}"
6472

65-
# How often to scrape the BMCs in seconds.
66-
redfish_exporter_scrape_interval: "{{ [8 * groups['redfish_exporter_targets'] | length, 300] | max }}"
73+
# How often to scrape OpenStack Exporter in seconds.
74+
stackhpc_prometheus_openstack_exporter_interval: 300
6775

6876
###############################################################################
6977

releasenotes/notes/bumps-redfish-exporter-to-v2-11032fb9dde36283.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ features:
33
- Upgrades the redfish exporter container image to the v2.x series.
44
- Adds support for lenovo hardware to the redfish exporter dashboard.
55
- |
6-
Adds the ``redfish_exporter_scrape_interval``, and
7-
``stackhpc_os_capacity_scrape_interval`` configuration variables.
6+
Adds the ``stackhpcredfish_exporter_scrape_interval``,
7+
``stackhpc_os_capacity_scrape_interval``, and
8+
``stackhpc_prometheus_openstack_exporter_interval``
9+
configuration variables.
810
fixes:
911
- |
1012
Sets the prometheus server side option ``query.lookback-delta`` to

0 commit comments

Comments
 (0)