github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/alertmanager-overview.yaml (about) 1 {{- /* 2 Generated from 'alertmanager-overview' from https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/main/manifests/grafana-dashboardDefinitions.yaml 3 Do not change in-place! In order to change this file first read following link: 4 https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack 5 */ -}} 6 {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} 7 {{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled }} 8 apiVersion: v1 9 kind: ConfigMap 10 metadata: 11 namespace: {{ template "kube-prometheus-stack-grafana.namespace" . }} 12 name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "alertmanager-overview" | trunc 63 | trimSuffix "-" }} 13 annotations: 14 {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} 15 labels: 16 {{- if $.Values.grafana.sidecar.dashboards.label }} 17 {{ $.Values.grafana.sidecar.dashboards.label }}: {{ ternary $.Values.grafana.sidecar.dashboards.labelValue "1" (not (empty $.Values.grafana.sidecar.dashboards.labelValue)) | quote }} 18 {{- end }} 19 app: {{ template "kube-prometheus-stack.name" $ }}-grafana 20 {{ include "kube-prometheus-stack.labels" $ | indent 4 }} 21 data: 22 alertmanager-overview.json: |- 23 { 24 "__inputs": [ 25 26 ], 27 "__requires": [ 28 29 ], 30 "annotations": { 31 "list": [ 32 33 ] 34 }, 35 "editable": false, 36 "gnetId": null, 37 "graphTooltip": 1, 38 "hideControls": false, 39 "id": null, 40 "links": [ 41 42 ], 43 "refresh": "30s", 44 "rows": [ 45 { 46 "collapse": false, 47 "collapsed": false, 48 "panels": [ 49 { 50 "aliasColors": { 51 52 }, 53 "bars": false, 54 "dashLength": 10, 55 "dashes": false, 56 "datasource": "$datasource", 57 "description": "current set of alerts stored in the Alertmanager", 58 "fill": 1, 59 "fillGradient": 0, 60 "gridPos": { 61 62 }, 63 "id": 2, 64 "legend": { 65 "alignAsTable": false, 66 "avg": false, 67 "current": false, 68 "max": false, 69 "min": false, 70 "rightSide": false, 71 "show": false, 72 "sideWidth": null, 73 "total": false, 74 "values": false 75 }, 76 "lines": true, 77 "linewidth": 1, 78 "links": [ 79 80 ], 81 "nullPointMode": "null", 82 "percentage": false, 83 "pointradius": 5, 84 "points": false, 85 "renderer": "flot", 86 "repeat": null, 87 "seriesOverrides": [ 88 89 ], 90 "spaceLength": 10, 91 "span": 6, 92 "stack": true, 93 "steppedLine": false, 94 "targets": [ 95 { 96 "expr": "sum(alertmanager_alerts{namespace=~\"$namespace\",service=~\"$service\"}) by (namespace,service,instance)", 97 "format": "time_series", 98 "intervalFactor": 2, 99 "legendFormat": "{{`{{`}}instance{{`}}`}}", 100 "refId": "A" 101 } 102 ], 103 "thresholds": [ 104 105 ], 106 "timeFrom": null, 107 "timeShift": null, 108 "title": "Alerts", 109 "tooltip": { 110 "shared": true, 111 "sort": 0, 112 "value_type": "individual" 113 }, 114 "type": "graph", 115 "xaxis": { 116 "buckets": null, 117 "mode": "time", 118 "name": null, 119 "show": true, 120 "values": [ 121 122 ] 123 }, 124 "yaxes": [ 125 { 126 "format": "none", 127 "label": null, 128 "logBase": 1, 129 "max": null, 130 "min": null, 131 "show": true 132 }, 133 { 134 "format": "none", 135 "label": null, 136 "logBase": 1, 137 "max": null, 138 "min": null, 139 "show": true 140 } 141 ] 142 }, 143 { 144 "aliasColors": { 145 146 }, 147 "bars": false, 148 "dashLength": 10, 149 "dashes": false, 150 "datasource": "$datasource", 151 "description": "rate of successful and invalid alerts received by the Alertmanager", 152 "fill": 1, 153 "fillGradient": 0, 154 "gridPos": { 155 156 }, 157 "id": 3, 158 "legend": { 159 "alignAsTable": false, 160 "avg": false, 161 "current": false, 162 "max": false, 163 "min": false, 164 "rightSide": false, 165 "show": false, 166 "sideWidth": null, 167 "total": false, 168 "values": false 169 }, 170 "lines": true, 171 "linewidth": 1, 172 "links": [ 173 174 ], 175 "nullPointMode": "null", 176 "percentage": false, 177 "pointradius": 5, 178 "points": false, 179 "renderer": "flot", 180 "repeat": null, 181 "seriesOverrides": [ 182 183 ], 184 "spaceLength": 10, 185 "span": 6, 186 "stack": true, 187 "steppedLine": false, 188 "targets": [ 189 { 190 "expr": "sum(rate(alertmanager_alerts_received_total{namespace=~\"$namespace\",service=~\"$service\"}[$__rate_interval])) by (namespace,service,instance)", 191 "format": "time_series", 192 "intervalFactor": 2, 193 "legendFormat": "{{`{{`}}instance{{`}}`}} Received", 194 "refId": "A" 195 }, 196 { 197 "expr": "sum(rate(alertmanager_alerts_invalid_total{namespace=~\"$namespace\",service=~\"$service\"}[$__rate_interval])) by (namespace,service,instance)", 198 "format": "time_series", 199 "intervalFactor": 2, 200 "legendFormat": "{{`{{`}}instance{{`}}`}} Invalid", 201 "refId": "B" 202 } 203 ], 204 "thresholds": [ 205 206 ], 207 "timeFrom": null, 208 "timeShift": null, 209 "title": "Alerts receive rate", 210 "tooltip": { 211 "shared": true, 212 "sort": 0, 213 "value_type": "individual" 214 }, 215 "type": "graph", 216 "xaxis": { 217 "buckets": null, 218 "mode": "time", 219 "name": null, 220 "show": true, 221 "values": [ 222 223 ] 224 }, 225 "yaxes": [ 226 { 227 "format": "ops", 228 "label": null, 229 "logBase": 1, 230 "max": null, 231 "min": null, 232 "show": true 233 }, 234 { 235 "format": "ops", 236 "label": null, 237 "logBase": 1, 238 "max": null, 239 "min": null, 240 "show": true 241 } 242 ] 243 } 244 ], 245 "repeat": null, 246 "repeatIteration": null, 247 "repeatRowId": null, 248 "showTitle": true, 249 "title": "Alerts", 250 "titleSize": "h6", 251 "type": "row" 252 }, 253 { 254 "collapse": false, 255 "collapsed": false, 256 "panels": [ 257 { 258 "aliasColors": { 259 260 }, 261 "bars": false, 262 "dashLength": 10, 263 "dashes": false, 264 "datasource": "$datasource", 265 "description": "rate of successful and invalid notifications sent by the Alertmanager", 266 "fill": 1, 267 "fillGradient": 0, 268 "gridPos": { 269 270 }, 271 "id": 4, 272 "legend": { 273 "alignAsTable": false, 274 "avg": false, 275 "current": false, 276 "max": false, 277 "min": false, 278 "rightSide": false, 279 "show": false, 280 "sideWidth": null, 281 "total": false, 282 "values": false 283 }, 284 "lines": true, 285 "linewidth": 1, 286 "links": [ 287 288 ], 289 "nullPointMode": "null", 290 "percentage": false, 291 "pointradius": 5, 292 "points": false, 293 "renderer": "flot", 294 "repeat": "integration", 295 "seriesOverrides": [ 296 297 ], 298 "spaceLength": 10, 299 "stack": true, 300 "steppedLine": false, 301 "targets": [ 302 { 303 "expr": "sum(rate(alertmanager_notifications_total{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (integration,namespace,service,instance)", 304 "format": "time_series", 305 "intervalFactor": 2, 306 "legendFormat": "{{`{{`}}instance{{`}}`}} Total", 307 "refId": "A" 308 }, 309 { 310 "expr": "sum(rate(alertmanager_notifications_failed_total{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (integration,namespace,service,instance)", 311 "format": "time_series", 312 "intervalFactor": 2, 313 "legendFormat": "{{`{{`}}instance{{`}}`}} Failed", 314 "refId": "B" 315 } 316 ], 317 "thresholds": [ 318 319 ], 320 "timeFrom": null, 321 "timeShift": null, 322 "title": "$integration: Notifications Send Rate", 323 "tooltip": { 324 "shared": true, 325 "sort": 0, 326 "value_type": "individual" 327 }, 328 "type": "graph", 329 "xaxis": { 330 "buckets": null, 331 "mode": "time", 332 "name": null, 333 "show": true, 334 "values": [ 335 336 ] 337 }, 338 "yaxes": [ 339 { 340 "format": "ops", 341 "label": null, 342 "logBase": 1, 343 "max": null, 344 "min": null, 345 "show": true 346 }, 347 { 348 "format": "ops", 349 "label": null, 350 "logBase": 1, 351 "max": null, 352 "min": null, 353 "show": true 354 } 355 ] 356 }, 357 { 358 "aliasColors": { 359 360 }, 361 "bars": false, 362 "dashLength": 10, 363 "dashes": false, 364 "datasource": "$datasource", 365 "description": "latency of notifications sent by the Alertmanager", 366 "fill": 1, 367 "fillGradient": 0, 368 "gridPos": { 369 370 }, 371 "id": 5, 372 "legend": { 373 "alignAsTable": false, 374 "avg": false, 375 "current": false, 376 "max": false, 377 "min": false, 378 "rightSide": false, 379 "show": false, 380 "sideWidth": null, 381 "total": false, 382 "values": false 383 }, 384 "lines": true, 385 "linewidth": 1, 386 "links": [ 387 388 ], 389 "nullPointMode": "null", 390 "percentage": false, 391 "pointradius": 5, 392 "points": false, 393 "renderer": "flot", 394 "repeat": "integration", 395 "seriesOverrides": [ 396 397 ], 398 "spaceLength": 10, 399 "stack": false, 400 "steppedLine": false, 401 "targets": [ 402 { 403 "expr": "histogram_quantile(0.99,\n sum(rate(alertmanager_notification_latency_seconds_bucket{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (le,namespace,service,instance)\n) \n", 404 "format": "time_series", 405 "intervalFactor": 2, 406 "legendFormat": "{{`{{`}}instance{{`}}`}} 99th Percentile", 407 "refId": "A" 408 }, 409 { 410 "expr": "histogram_quantile(0.50,\n sum(rate(alertmanager_notification_latency_seconds_bucket{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (le,namespace,service,instance)\n) \n", 411 "format": "time_series", 412 "intervalFactor": 2, 413 "legendFormat": "{{`{{`}}instance{{`}}`}} Median", 414 "refId": "B" 415 }, 416 { 417 "expr": "sum(rate(alertmanager_notification_latency_seconds_sum{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (namespace,service,instance)\n/\nsum(rate(alertmanager_notification_latency_seconds_count{namespace=~\"$namespace\",service=~\"$service\", integration=\"$integration\"}[$__rate_interval])) by (namespace,service,instance)\n", 418 "format": "time_series", 419 "intervalFactor": 2, 420 "legendFormat": "{{`{{`}}instance{{`}}`}} Average", 421 "refId": "C" 422 } 423 ], 424 "thresholds": [ 425 426 ], 427 "timeFrom": null, 428 "timeShift": null, 429 "title": "$integration: Notification Duration", 430 "tooltip": { 431 "shared": true, 432 "sort": 0, 433 "value_type": "individual" 434 }, 435 "type": "graph", 436 "xaxis": { 437 "buckets": null, 438 "mode": "time", 439 "name": null, 440 "show": true, 441 "values": [ 442 443 ] 444 }, 445 "yaxes": [ 446 { 447 "format": "s", 448 "label": null, 449 "logBase": 1, 450 "max": null, 451 "min": null, 452 "show": true 453 }, 454 { 455 "format": "s", 456 "label": null, 457 "logBase": 1, 458 "max": null, 459 "min": null, 460 "show": true 461 } 462 ] 463 } 464 ], 465 "repeat": null, 466 "repeatIteration": null, 467 "repeatRowId": null, 468 "showTitle": true, 469 "title": "Notifications", 470 "titleSize": "h6", 471 "type": "row" 472 } 473 ], 474 "schemaVersion": 14, 475 "style": "dark", 476 "tags": [ 477 "alertmanager-mixin" 478 ], 479 "templating": { 480 "list": [ 481 { 482 "current": { 483 "text": "Prometheus", 484 "value": "Prometheus" 485 }, 486 "hide": 0, 487 "label": "Data Source", 488 "name": "datasource", 489 "options": [ 490 491 ], 492 "query": "prometheus", 493 "refresh": 1, 494 "regex": "", 495 "type": "datasource" 496 }, 497 { 498 "allValue": null, 499 "current": { 500 "text": "", 501 "value": "" 502 }, 503 "datasource": "$datasource", 504 "hide": 0, 505 "includeAll": false, 506 "label": "namespace", 507 "multi": false, 508 "name": "namespace", 509 "options": [ 510 511 ], 512 "query": "label_values(alertmanager_alerts, namespace)", 513 "refresh": 2, 514 "regex": "", 515 "sort": 1, 516 "tagValuesQuery": "", 517 "tags": [ 518 519 ], 520 "tagsQuery": "", 521 "type": "query", 522 "useTags": false 523 }, 524 { 525 "allValue": null, 526 "current": { 527 "text": "", 528 "value": "" 529 }, 530 "datasource": "$datasource", 531 "hide": 0, 532 "includeAll": false, 533 "label": "service", 534 "multi": false, 535 "name": "service", 536 "options": [ 537 538 ], 539 "query": "label_values(alertmanager_alerts, service)", 540 "refresh": 2, 541 "regex": "", 542 "sort": 1, 543 "tagValuesQuery": "", 544 "tags": [ 545 546 ], 547 "tagsQuery": "", 548 "type": "query", 549 "useTags": false 550 }, 551 { 552 "allValue": null, 553 "current": { 554 "text": "all", 555 "value": "$__all" 556 }, 557 "datasource": "$datasource", 558 "hide": 2, 559 "includeAll": true, 560 "label": null, 561 "multi": false, 562 "name": "integration", 563 "options": [ 564 565 ], 566 "query": "label_values(alertmanager_notifications_total{integration=~\".*\"}, integration)", 567 "refresh": 2, 568 "regex": "", 569 "sort": 1, 570 "tagValuesQuery": "", 571 "tags": [ 572 573 ], 574 "tagsQuery": "", 575 "type": "query", 576 "useTags": false 577 } 578 ] 579 }, 580 "time": { 581 "from": "now-1h", 582 "to": "now" 583 }, 584 "timepicker": { 585 "refresh_intervals": [ 586 "5s", 587 "10s", 588 "30s", 589 "1m", 590 "5m", 591 "15m", 592 "30m", 593 "1h", 594 "2h", 595 "1d" 596 ], 597 "time_options": [ 598 "5m", 599 "15m", 600 "1h", 601 "6h", 602 "12h", 603 "24h", 604 "2d", 605 "7d", 606 "30d" 607 ] 608 }, 609 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 610 "title": "Alertmanager / Overview", 611 "uid": "alertmanager-overview", 612 "version": 0 613 } 614 {{- end }}