|
| 1 | +groups: |
| 2 | +- name: cortex-cinder-alerts |
| 3 | + rules: |
| 4 | + - alert: CortexCinderInitialPlacementDown |
| 5 | + expr: | |
| 6 | + up{component="cortex-cinder-scheduler"} != 1 or |
| 7 | + absent(up{component="cortex-cinder-scheduler"}) |
| 8 | + for: 1m |
| 9 | + labels: |
| 10 | + context: liveness |
| 11 | + dashboard: cortex/cortex |
| 12 | + service: cortex |
| 13 | + severity: warning |
| 14 | + support_group: workload-management |
| 15 | + playbook: docs/support/playbook/cortex/down |
| 16 | + annotations: |
| 17 | + summary: "Cortex initial placement for Cinder is down" |
| 18 | + description: > |
| 19 | + The Cortex initial placement is down. Initial placement requests from Cinder will |
| 20 | + not be served. This is no immediate problem, since Cinder will continue |
| 21 | + placing new shares. However, the placement will be less desirable. |
| 22 | +
|
| 23 | + - alert: CortexCinderSyncerDown |
| 24 | + expr: | |
| 25 | + up{component="cortex-cinder-syncer"} != 1 or |
| 26 | + absent(up{component="cortex-cinder-syncer"}) |
| 27 | + for: 1m |
| 28 | + labels: |
| 29 | + context: liveness |
| 30 | + dashboard: cortex/cortex |
| 31 | + service: cortex |
| 32 | + severity: warning |
| 33 | + support_group: workload-management |
| 34 | + annotations: |
| 35 | + summary: "Cortex syncer is down" |
| 36 | + description: > |
| 37 | + The Cortex syncer is down. Cortex requires somewhat recent data from |
| 38 | + it's datasources (OpenStack, Prometheus, etc.) to make accurate |
| 39 | + scheduling decisions. If this issue persists for a longer time, the |
| 40 | + data based will slowly drift away from the actual state of the |
| 41 | + datacenter, which may lead to less desirable placement decisions. |
| 42 | + This is no immediate problem, since Cinder will continue placing new |
| 43 | + shares. |
| 44 | +
|
| 45 | + - alert: CortexCinderExtractorDown |
| 46 | + expr: | |
| 47 | + up{component="cortex-cinder-extractor"} != 1 or |
| 48 | + absent(up{component="cortex-cinder-extractor"}) |
| 49 | + for: 1m |
| 50 | + labels: |
| 51 | + context: liveness |
| 52 | + dashboard: cortex/cortex |
| 53 | + service: cortex |
| 54 | + severity: warning |
| 55 | + support_group: workload-management |
| 56 | + annotations: |
| 57 | + summary: "Cortex extractor is down" |
| 58 | + description: > |
| 59 | + The Cortex extractor is down. This means that newly available data |
| 60 | + about the datacenter will not be used to extract scheduling knowledge. |
| 61 | + This is no immediate problem, since Cinder will continue placing new |
| 62 | + shares. However, the placement will be less desirable. |
| 63 | +
|
| 64 | + - alert: CortexCinderHttpRequest400sTooHigh |
| 65 | + expr: rate(cortex_scheduler_api_request_duration_seconds_count{component="cortex-cinder-scheduler",status=~"4.+"}[5m]) > 0.1 |
| 66 | + for: 5m |
| 67 | + labels: |
| 68 | + context: api |
| 69 | + dashboard: cortex/cortex |
| 70 | + service: cortex |
| 71 | + severity: warning |
| 72 | + support_group: workload-management |
| 73 | + annotations: |
| 74 | + summary: "HTTP request 400 errors too high" |
| 75 | + description: > |
| 76 | + Cortex is responding to Cinder initial placement requests with HTTP 4xx |
| 77 | + errors. This is expected when the scheduling request cannot be served |
| 78 | + by Cortex. However, it could also indicate that the Cinder request |
| 79 | + format has changed and Cortex is unable to parse it. |
| 80 | +
|
| 81 | + - alert: CortexCinderHttpRequest500sTooHigh |
| 82 | + expr: rate(cortex_scheduler_api_request_duration_seconds_count{component="cortex-cinder-scheduler",status=~"5.+"}[5m]) > 0.1 |
| 83 | + for: 5m |
| 84 | + labels: |
| 85 | + context: api |
| 86 | + dashboard: cortex/cortex |
| 87 | + service: cortex |
| 88 | + severity: warning |
| 89 | + support_group: workload-management |
| 90 | + annotations: |
| 91 | + summary: "HTTP request 500 errors too high" |
| 92 | + description: > |
| 93 | + Cortex is responding to Cinder initial placement requests with HTTP 5xx |
| 94 | + errors. This is not expected and indicates that Cortex is having some |
| 95 | + internal problem. Cinder will continue to place new shares, but the |
| 96 | + placement will be less desirable. Thus, no immediate action is needed. |
| 97 | +
|
| 98 | + - alert: CortexCinderHighMemoryUsage |
| 99 | + expr: process_resident_memory_bytes{component=~"cortex-cinder-.*"} > 6000 * 1024 * 1024 |
| 100 | + for: 5m |
| 101 | + labels: |
| 102 | + context: memory |
| 103 | + dashboard: cortex/cortex |
| 104 | + service: cortex |
| 105 | + severity: warning |
| 106 | + support_group: workload-management |
| 107 | + annotations: |
| 108 | + summary: "Cortex `{{$labels.component}}` uses too much memory" |
| 109 | + description: > |
| 110 | + Cortex should not be using more than 6000 MiB of memory. Usually it |
| 111 | + should use much less, so there may be a memory leak or other changes |
| 112 | + that are causing the memory usage to increase significantly. |
| 113 | +
|
| 114 | + - alert: CortexCinderHighCPUUsage |
| 115 | + expr: rate(process_cpu_seconds_total{component=~"cortex-cinder-.*"}[1m]) > 0.5 |
| 116 | + for: 5m |
| 117 | + labels: |
| 118 | + context: cpu |
| 119 | + dashboard: cortex/cortex |
| 120 | + service: cortex |
| 121 | + severity: warning |
| 122 | + support_group: workload-management |
| 123 | + annotations: |
| 124 | + summary: "Cortex `{{$labels.component}}` uses too much CPU" |
| 125 | + description: > |
| 126 | + Cortex should not be using more than 50% of a single CPU core. Usually |
| 127 | + it should use much less, so there may be a CPU leak or other changes |
| 128 | + that are causing the CPU usage to increase significantly. |
| 129 | +
|
| 130 | + - alert: CortexCinderSyncNotSuccessful |
| 131 | + expr: cortex_sync_request_processed_total{component=~"cortex-cinder-.*"} - cortex_sync_request_duration_seconds_count{component=~"cortex-cinder-.*"} > 0 |
| 132 | + for: 5m |
| 133 | + labels: |
| 134 | + context: syncstatus |
| 135 | + dashboard: cortex/cortex |
| 136 | + service: cortex |
| 137 | + severity: warning |
| 138 | + support_group: workload-management |
| 139 | + annotations: |
| 140 | + summary: "Sync not successful" |
| 141 | + description: > |
| 142 | + Cortex experienced an issue syncing data from a datasource. This may |
| 143 | + happen when the datasource (OpenStack, Prometheus, etc.) is down or |
| 144 | + the sync module is misconfigured. No immediate action is needed, since |
| 145 | + the sync module will retry the sync operation and the currently synced |
| 146 | + data will be kept. However, when this problem persists for a longer |
| 147 | + time the service will have a less recent view of the datacenter. |
| 148 | +
|
| 149 | + - alert: CortexCinderSyncObjectsDroppedToZero |
| 150 | + expr: cortex_sync_objects{component=~"cortex-cinder-.*",datasource!="openstack_migrations"} == 0 |
| 151 | + for: 60m |
| 152 | + labels: |
| 153 | + context: syncobjects |
| 154 | + dashboard: cortex/cortex |
| 155 | + service: cortex |
| 156 | + severity: warning |
| 157 | + support_group: workload-management |
| 158 | + annotations: |
| 159 | + summary: "Cortex is not syncing any new data from `{{$labels.datasource}}`" |
| 160 | + description: > |
| 161 | + Cortex is not syncing any objects from a datasource. This may happen |
| 162 | + when the datasource (OpenStack, Prometheus, etc.) is down or the sync |
| 163 | + module is misconfigured. No immediate action is needed, since the sync |
| 164 | + module will retry the sync operation and the currently synced data will |
| 165 | + be kept. However, when this problem persists for a longer time the |
| 166 | + service will have a less recent view of the datacenter. |
| 167 | +
|
| 168 | + - alert: CortexCinderSyncObjectsTooHigh |
| 169 | + expr: cortex_sync_objects{component=~"cortex-cinder-.*"} > 10000000 |
| 170 | + for: 5m |
| 171 | + labels: |
| 172 | + context: syncobjects |
| 173 | + dashboard: cortex/cortex |
| 174 | + service: cortex |
| 175 | + severity: warning |
| 176 | + support_group: workload-management |
| 177 | + annotations: |
| 178 | + summary: "Cortex is syncing unexpectedly many objects from `{{$labels.datasource}}`" |
| 179 | + description: > |
| 180 | + Cortex is syncing more than 1 million objects from a datasource. This |
| 181 | + may happen when the datasource (OpenStack, Prometheus, etc.) returns |
| 182 | + unexpectedly many objects, or when the database cannot drop old objects. |
| 183 | + No immediate action is needed, but should this condition persist for a |
| 184 | + longer time, the database may fill up and crash. |
| 185 | +
|
| 186 | + - alert: CortexCinderTooManyMQTTConnectionAttempts |
| 187 | + expr: rate(cortex_mqtt_connection_attempts_total{component=~"cortex-cinder-.*"}[5m]) > 0.1 |
| 188 | + for: 1m |
| 189 | + labels: |
| 190 | + context: mqtt |
| 191 | + dashboard: cortex/cortex |
| 192 | + service: cortex |
| 193 | + severity: warning |
| 194 | + support_group: workload-management |
| 195 | + annotations: |
| 196 | + summary: "Cortex is trying to connect to MQTT too often" |
| 197 | + description: > |
| 198 | + Cortex is trying to connect to the MQTT broker too often. This may |
| 199 | + happen when the broker is down or the connection parameters are |
| 200 | + misconfigured. |
| 201 | +
|
| 202 | + - alert: CortexCinderTooManyDBConnectionAttempts |
| 203 | + expr: rate(cortex_db_connection_attempts_total{component=~"cortex-cinder-.*"}[5m]) > 0.1 |
| 204 | + for: 5m |
| 205 | + labels: |
| 206 | + context: db |
| 207 | + dashboard: cortex/cortex |
| 208 | + service: cortex |
| 209 | + severity: warning |
| 210 | + support_group: workload-management |
| 211 | + annotations: |
| 212 | + summary: "Cortex is trying to connect to the database too often" |
| 213 | + description: > |
| 214 | + Cortex is trying to connect to the database too often. This may happen |
| 215 | + when the database is down or the connection parameters are misconfigured. |
0 commit comments