|
3 | 3 | ###############################################################################
|
4 | 4 | # Prometheus server configuration
|
5 | 5 |
|
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 |
7 | 12 |
|
8 | 13 | ###############################################################################
|
9 | 14 | # Alert configuration
|
@@ -55,15 +60,18 @@ stackhpc_os_capacity_scrape_interval: 900
|
55 | 60 | # Whether the redfish exporter is enabled.
|
56 | 61 | stackhpc_enable_redfish_exporter: false
|
57 | 62 |
|
| 63 | +# How often to scrape the BMCs in seconds. |
| 64 | +stackhpc_redfish_exporter_scrape_interval: "{{ [8 * groups['redfish_exporter_targets'] | length, 300] | max }}" |
| 65 | + |
58 | 66 | # Credentials
|
59 | 67 | redfish_exporter_default_username: "{{ ipmi_username }}"
|
60 | 68 | redfish_exporter_default_password: "{{ ipmi_password }}"
|
61 | 69 |
|
62 | 70 | # The address of the BMC that is used to query redfish metrics.
|
63 | 71 | redfish_exporter_target_address: "{{ ipmi_address }}"
|
64 | 72 |
|
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 |
67 | 75 |
|
68 | 76 | ###############################################################################
|
69 | 77 |
|
|
0 commit comments