Skip to content

Commit a36b667

Browse files
committed
Make query lookback delta setting smarter
1 parent 15e2cba commit a36b667

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

etc/kayobe/kolla/config/prometheus/prometheus.yml.d/60-redfish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ scrape_configs:
77
collectlogs: ['false']
88
metrics_path: /redfish
99
scrape_timeout: 300s
10-
scrape_interval: {{ [8 * groups['redfish_exporter_targets'] | length, 300] | max }}s
10+
scrape_interval: {{ redfish_exporter_scrape_interval }}s
1111
relabel_configs:
1212
- source_labels: [__address__]
1313
target_label: __param_target

etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ scrape_configs:
77
static_configs:
88
- targets:
99
- '{{ kolla_internal_fqdn | put_address_in_context('url') }}:9090'
10-
scrape_interval: 15m
10+
scrape_interval: "{{ stackhpc_os_capacity_scrape_interval }}s"
1111
scrape_timeout: 10m
1212
{% if kolla_enable_tls_internal | bool %}
1313
scheme: https

etc/kayobe/stackhpc-monitoring.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
# StackHPC monitoring configuration
3+
###############################################################################
4+
# Prometheus server configuration
5+
6+
prometheus_query_lookback_delta: "{{ [redfish_exporter_scrape_interval, stackhpc_os_capacity_scrape_interval, 300] | max }}s"
37

48
###############################################################################
59
# Alert configuration
@@ -45,6 +49,9 @@ stackhpc_os_capacity_openstack_cacert: ""
4549
stackhpc_os_capacity_openstack_verify: true
4650
# Redfish exporter
4751

52+
# How often to scrape the os capacity exporter in seconds.
53+
stackhpc_os_capacity_scrape_interval: 900
54+
4855
# Whether the redfish exporter is enabled.
4956
stackhpc_enable_redfish_exporter: false
5057

@@ -55,6 +62,9 @@ redfish_exporter_default_password: "{{ ipmi_password }}"
5562
# The address of the BMC that is used to query redfish metrics.
5663
redfish_exporter_target_address: "{{ ipmi_address }}"
5764

65+
# How often to scrape the BMCs in seconds.
66+
redfish_exporter_scrape_interval: "{{ [8 * groups['redfish_exporter_targets'] | length, 300] | max }}"
67+
5868
###############################################################################
5969

6070
# Whether the RADOS gateway usage exporter is enabled.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
features:
3+
- Upgrades the redfish exporter container image to the v2.x series.
4+
- Adds support for lenovo hardware to the redfish exporter dashboard.
5+
- |
6+
Adds the ``redfish_exporter_scrape_interval``, and
7+
``stackhpc_os_capacity_scrape_interval`` configuration variables.
8+
fixes:
9+
- |
10+
Sets the prometheus server side option ``query.lookback-delta`` to
11+
the largest scrape interval so that redfish exporter metrics are not
12+
marked stale before the next scrape.
13+
- Fixes various issues with the redfish exporter dashboard.

0 commit comments

Comments
 (0)