Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 1 | { |
| 2 | "annotations": { |
| 3 | "list": [ |
| 4 | { |
| 5 | "builtIn": 1, |
| 6 | "datasource": "-- Grafana --", |
| 7 | "enable": true, |
| 8 | "hide": true, |
| 9 | "iconColor": "rgba(0, 211, 255, 1)", |
| 10 | "name": "Annotations & Alerts", |
| 11 | "type": "dashboard" |
| 12 | } |
| 13 | ] |
| 14 | }, |
| 15 | "editable": true, |
| 16 | "gnetId": null, |
| 17 | "graphTooltip": 0, |
Andy Bavier | 8e69eb6 | 2021-03-05 13:55:13 -0700 | [diff] [blame^] | 18 | "iteration": 1614977037647, |
Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 19 | "links": [], |
| 20 | "panels": [ |
| 21 | { |
| 22 | "aliasColors": {}, |
| 23 | "bars": false, |
| 24 | "dashLength": 10, |
| 25 | "dashes": false, |
| 26 | "datasource": "$es_datasource", |
| 27 | "description": "", |
| 28 | "fieldConfig": { |
| 29 | "defaults": { |
| 30 | "custom": { |
| 31 | "align": null |
| 32 | }, |
| 33 | "mappings": [], |
| 34 | "thresholds": { |
| 35 | "mode": "absolute", |
| 36 | "steps": [ |
| 37 | { |
| 38 | "color": "green", |
| 39 | "value": null |
| 40 | }, |
| 41 | { |
| 42 | "color": "red", |
| 43 | "value": 80 |
| 44 | } |
| 45 | ] |
| 46 | } |
| 47 | }, |
| 48 | "overrides": [] |
| 49 | }, |
| 50 | "fill": 10, |
| 51 | "fillGradient": 0, |
| 52 | "gridPos": { |
| 53 | "h": 5, |
| 54 | "w": 12, |
| 55 | "x": 0, |
| 56 | "y": 0 |
| 57 | }, |
| 58 | "hiddenSeries": false, |
| 59 | "id": 2, |
| 60 | "legend": { |
| 61 | "avg": false, |
| 62 | "current": false, |
| 63 | "hideEmpty": false, |
| 64 | "hideZero": false, |
| 65 | "max": false, |
| 66 | "min": false, |
| 67 | "show": false, |
| 68 | "total": false, |
| 69 | "values": false |
| 70 | }, |
| 71 | "lines": true, |
| 72 | "linewidth": 1, |
| 73 | "nullPointMode": "null", |
| 74 | "percentage": false, |
| 75 | "pluginVersion": "7.1.5", |
| 76 | "pointradius": 2, |
| 77 | "points": false, |
| 78 | "renderer": "flot", |
| 79 | "repeat": "pod", |
| 80 | "repeatDirection": "v", |
| 81 | "seriesOverrides": [], |
| 82 | "spaceLength": 10, |
| 83 | "stack": true, |
| 84 | "steppedLine": false, |
| 85 | "targets": [ |
| 86 | { |
| 87 | "bucketAggs": [ |
| 88 | { |
| 89 | "$$hashKey": "object:3957", |
| 90 | "fake": true, |
| 91 | "field": "kubernetes.pod_name.keyword", |
| 92 | "id": "3", |
| 93 | "settings": { |
| 94 | "min_doc_count": "1", |
| 95 | "order": "desc", |
| 96 | "orderBy": "_term", |
| 97 | "size": "0" |
| 98 | }, |
| 99 | "type": "terms" |
| 100 | }, |
| 101 | { |
| 102 | "$$hashKey": "object:195", |
| 103 | "field": "@timestamp", |
| 104 | "id": "2", |
| 105 | "settings": { |
| 106 | "interval": "1m", |
| 107 | "min_doc_count": "0", |
| 108 | "trimEdges": 0 |
| 109 | }, |
| 110 | "type": "date_histogram" |
| 111 | } |
| 112 | ], |
| 113 | "metrics": [ |
| 114 | { |
| 115 | "$$hashKey": "object:193", |
| 116 | "field": "select field", |
| 117 | "id": "1", |
| 118 | "meta": {}, |
| 119 | "settings": {}, |
| 120 | "type": "count" |
| 121 | } |
| 122 | ], |
| 123 | "query": "kubernetes.namespace_name.keyword:$es_namespace", |
| 124 | "refId": "A", |
| 125 | "timeField": "@timestamp" |
| 126 | } |
| 127 | ], |
| 128 | "thresholds": [], |
| 129 | "timeFrom": null, |
| 130 | "timeRegions": [], |
| 131 | "timeShift": null, |
| 132 | "title": "Namespace $es_namespace: Log Messages Per Minute", |
| 133 | "tooltip": { |
| 134 | "shared": true, |
| 135 | "sort": 0, |
| 136 | "value_type": "individual" |
| 137 | }, |
| 138 | "transformations": [], |
| 139 | "type": "graph", |
| 140 | "xaxis": { |
| 141 | "buckets": null, |
| 142 | "mode": "time", |
| 143 | "name": null, |
| 144 | "show": true, |
| 145 | "values": [] |
| 146 | }, |
| 147 | "yaxes": [ |
| 148 | { |
| 149 | "$$hashKey": "object:875", |
| 150 | "format": "short", |
| 151 | "label": null, |
| 152 | "logBase": 1, |
| 153 | "max": null, |
| 154 | "min": null, |
| 155 | "show": true |
| 156 | }, |
| 157 | { |
| 158 | "$$hashKey": "object:876", |
| 159 | "format": "short", |
| 160 | "label": null, |
| 161 | "logBase": 1, |
| 162 | "max": null, |
| 163 | "min": null, |
| 164 | "show": true |
| 165 | } |
| 166 | ], |
| 167 | "yaxis": { |
| 168 | "align": false, |
| 169 | "alignLevel": null |
| 170 | } |
| 171 | }, |
| 172 | { |
| 173 | "aliasColors": {}, |
| 174 | "bars": false, |
| 175 | "dashLength": 10, |
| 176 | "dashes": false, |
| 177 | "datasource": "$es_datasource", |
| 178 | "description": "", |
| 179 | "fieldConfig": { |
| 180 | "defaults": { |
| 181 | "custom": {} |
| 182 | }, |
| 183 | "overrides": [] |
| 184 | }, |
| 185 | "fill": 10, |
| 186 | "fillGradient": 0, |
| 187 | "gridPos": { |
| 188 | "h": 5, |
| 189 | "w": 12, |
| 190 | "x": 12, |
| 191 | "y": 0 |
| 192 | }, |
| 193 | "hiddenSeries": false, |
| 194 | "id": 4, |
| 195 | "legend": { |
| 196 | "avg": false, |
| 197 | "current": false, |
| 198 | "max": false, |
| 199 | "min": false, |
| 200 | "show": false, |
| 201 | "total": false, |
| 202 | "values": false |
| 203 | }, |
| 204 | "lines": true, |
| 205 | "linewidth": 1, |
| 206 | "nullPointMode": "null", |
| 207 | "percentage": false, |
| 208 | "pluginVersion": "7.1.5", |
| 209 | "pointradius": 2, |
| 210 | "points": false, |
| 211 | "renderer": "flot", |
| 212 | "repeatDirection": "v", |
| 213 | "seriesOverrides": [], |
| 214 | "spaceLength": 10, |
| 215 | "stack": true, |
| 216 | "steppedLine": false, |
| 217 | "targets": [ |
| 218 | { |
| 219 | "bucketAggs": [ |
| 220 | { |
| 221 | "$$hashKey": "object:191", |
| 222 | "fake": true, |
| 223 | "field": "kubernetes.container_name.keyword", |
| 224 | "id": "3", |
| 225 | "settings": { |
| 226 | "min_doc_count": "1", |
| 227 | "order": "desc", |
| 228 | "orderBy": "_term", |
| 229 | "size": "0" |
| 230 | }, |
| 231 | "type": "terms" |
| 232 | }, |
| 233 | { |
| 234 | "$$hashKey": "object:195", |
| 235 | "field": "@timestamp", |
| 236 | "id": "2", |
| 237 | "settings": { |
| 238 | "interval": "1m", |
| 239 | "min_doc_count": "0", |
| 240 | "trimEdges": 0 |
| 241 | }, |
| 242 | "type": "date_histogram" |
| 243 | } |
| 244 | ], |
| 245 | "metrics": [ |
| 246 | { |
| 247 | "$$hashKey": "object:193", |
| 248 | "field": "select field", |
| 249 | "id": "1", |
| 250 | "type": "count" |
| 251 | } |
| 252 | ], |
| 253 | "query": "kubernetes.pod_name.keyword:$es_pod AND kubernetes.namespace_name.keyword:$es_namespace AND (logLevel.keyword:$es_loglevel)", |
| 254 | "refId": "A", |
| 255 | "timeField": "@timestamp" |
| 256 | } |
| 257 | ], |
| 258 | "thresholds": [], |
| 259 | "timeFrom": null, |
| 260 | "timeRegions": [], |
| 261 | "timeShift": null, |
| 262 | "title": "Pod $es_pod: Log Messages per Minute", |
| 263 | "tooltip": { |
| 264 | "shared": true, |
| 265 | "sort": 0, |
| 266 | "value_type": "individual" |
| 267 | }, |
| 268 | "type": "graph", |
| 269 | "xaxis": { |
| 270 | "buckets": null, |
| 271 | "mode": "time", |
| 272 | "name": null, |
| 273 | "show": true, |
| 274 | "values": [] |
| 275 | }, |
| 276 | "yaxes": [ |
| 277 | { |
| 278 | "$$hashKey": "object:171", |
| 279 | "format": "short", |
| 280 | "label": null, |
| 281 | "logBase": 1, |
| 282 | "max": null, |
| 283 | "min": null, |
| 284 | "show": true |
| 285 | }, |
| 286 | { |
| 287 | "$$hashKey": "object:172", |
| 288 | "format": "short", |
| 289 | "label": null, |
| 290 | "logBase": 1, |
| 291 | "max": null, |
| 292 | "min": null, |
| 293 | "show": true |
| 294 | } |
| 295 | ], |
| 296 | "yaxis": { |
| 297 | "align": false, |
| 298 | "alignLevel": null |
| 299 | } |
| 300 | }, |
| 301 | { |
| 302 | "datasource": "$es_datasource", |
| 303 | "description": "", |
| 304 | "fieldConfig": { |
| 305 | "defaults": { |
| 306 | "custom": { |
| 307 | "align": null |
| 308 | }, |
| 309 | "mappings": [], |
| 310 | "thresholds": { |
| 311 | "mode": "absolute", |
| 312 | "steps": [ |
| 313 | { |
| 314 | "color": "green", |
| 315 | "value": null |
| 316 | }, |
| 317 | { |
| 318 | "color": "red", |
| 319 | "value": 80 |
| 320 | } |
| 321 | ] |
| 322 | } |
| 323 | }, |
| 324 | "overrides": [ |
| 325 | { |
| 326 | "matcher": { |
| 327 | "id": "byName", |
| 328 | "options": "_source" |
| 329 | }, |
| 330 | "properties": [ |
| 331 | { |
| 332 | "id": "custom.width", |
| 333 | "value": 218 |
| 334 | } |
| 335 | ] |
| 336 | }, |
| 337 | { |
| 338 | "matcher": { |
| 339 | "id": "byName", |
| 340 | "options": "kubernetes.container_hash" |
| 341 | }, |
| 342 | "properties": [ |
| 343 | { |
| 344 | "id": "custom.width", |
| 345 | "value": 235 |
| 346 | } |
| 347 | ] |
| 348 | }, |
| 349 | { |
| 350 | "matcher": { |
| 351 | "id": "byName", |
| 352 | "options": "kubernetes.container_image" |
| 353 | }, |
| 354 | "properties": [ |
| 355 | { |
| 356 | "id": "custom.width", |
| 357 | "value": 178 |
| 358 | } |
| 359 | ] |
| 360 | }, |
| 361 | { |
| 362 | "matcher": { |
| 363 | "id": "byName", |
| 364 | "options": "kubernetes.labels.release" |
| 365 | }, |
| 366 | "properties": [ |
| 367 | { |
| 368 | "id": "custom.width", |
| 369 | "value": 168 |
| 370 | } |
| 371 | ] |
| 372 | } |
| 373 | ] |
| 374 | }, |
| 375 | "gridPos": { |
| 376 | "h": 14, |
| 377 | "w": 24, |
| 378 | "x": 0, |
| 379 | "y": 5 |
| 380 | }, |
| 381 | "id": 3, |
| 382 | "options": { |
| 383 | "showLabels": false, |
| 384 | "showTime": true, |
| 385 | "sortOrder": "Descending", |
| 386 | "wrapLogMessage": false |
| 387 | }, |
| 388 | "pluginVersion": "7.1.5", |
| 389 | "repeatDirection": "v", |
| 390 | "targets": [ |
| 391 | { |
| 392 | "bucketAggs": [ |
| 393 | { |
| 394 | "$$hashKey": "object:381", |
| 395 | "field": "@timestamp", |
| 396 | "id": "2", |
| 397 | "settings": { |
| 398 | "interval": "auto", |
| 399 | "min_doc_count": 0, |
| 400 | "trimEdges": 0 |
| 401 | }, |
| 402 | "type": "date_histogram" |
| 403 | } |
| 404 | ], |
| 405 | "metrics": [ |
| 406 | { |
| 407 | "$$hashKey": "object:211", |
| 408 | "field": "select field", |
| 409 | "id": "1", |
| 410 | "meta": {}, |
| 411 | "settings": {}, |
| 412 | "type": "logs" |
| 413 | } |
| 414 | ], |
Andy Bavier | 8e69eb6 | 2021-03-05 13:55:13 -0700 | [diff] [blame^] | 415 | "query": "kubernetes.container_name.keyword:$es_container AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.namespace_name.keyword:$es_namespace AND (logLevel.keyword:$es_loglevel) AND log:$search_string", |
Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 416 | "refId": "A", |
| 417 | "timeField": "@timestamp" |
| 418 | } |
| 419 | ], |
| 420 | "timeFrom": null, |
| 421 | "timeShift": null, |
| 422 | "title": "$es_pod Logs ($es_container)", |
| 423 | "transparent": true, |
| 424 | "type": "logs" |
| 425 | } |
| 426 | ], |
| 427 | "refresh": "10s", |
| 428 | "schemaVersion": 26, |
| 429 | "style": "dark", |
| 430 | "tags": [], |
| 431 | "templating": { |
| 432 | "list": [ |
| 433 | { |
| 434 | "current": { |
Andy Bavier | 8e69eb6 | 2021-03-05 13:55:13 -0700 | [diff] [blame^] | 435 | "selected": false, |
| 436 | "text": "acc-gcp1-es", |
| 437 | "value": "acc-gcp1-es" |
Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 438 | }, |
| 439 | "hide": 0, |
| 440 | "includeAll": false, |
| 441 | "label": "Datasource", |
| 442 | "multi": false, |
| 443 | "name": "es_datasource", |
| 444 | "options": [], |
| 445 | "query": "elasticsearch", |
| 446 | "queryValue": "", |
| 447 | "refresh": 1, |
| 448 | "regex": "", |
| 449 | "skipUrlSync": false, |
| 450 | "type": "datasource" |
| 451 | }, |
| 452 | { |
| 453 | "allValue": null, |
| 454 | "current": { |
| 455 | "selected": false, |
| 456 | "text": "omec", |
| 457 | "value": "omec" |
| 458 | }, |
| 459 | "datasource": "$es_datasource", |
| 460 | "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.namespace_name.keyword\"}\t", |
| 461 | "hide": 0, |
| 462 | "includeAll": false, |
| 463 | "label": "Namespace", |
| 464 | "multi": false, |
| 465 | "name": "es_namespace", |
| 466 | "options": [], |
| 467 | "query": "{\"find\": \"terms\", \"field\": \"kubernetes.namespace_name.keyword\"}\t", |
| 468 | "refresh": 2, |
| 469 | "regex": "", |
| 470 | "skipUrlSync": false, |
| 471 | "sort": 0, |
| 472 | "tagValuesQuery": "", |
| 473 | "tags": [], |
| 474 | "tagsQuery": "", |
| 475 | "type": "query", |
| 476 | "useTags": false |
| 477 | }, |
| 478 | { |
| 479 | "allValue": null, |
| 480 | "current": { |
| 481 | "selected": false, |
Andy Bavier | 8e69eb6 | 2021-03-05 13:55:13 -0700 | [diff] [blame^] | 482 | "text": "spgwc-0", |
| 483 | "value": "spgwc-0" |
Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 484 | }, |
| 485 | "datasource": "$es_datasource", |
| 486 | "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}\t", |
| 487 | "hide": 0, |
| 488 | "includeAll": false, |
| 489 | "label": "Pod", |
| 490 | "multi": false, |
| 491 | "name": "es_pod", |
| 492 | "options": [], |
| 493 | "query": "{\"find\": \"terms\", \"field\": \"kubernetes.pod_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace\"}\t", |
| 494 | "refresh": 2, |
| 495 | "regex": "", |
| 496 | "skipUrlSync": false, |
| 497 | "sort": 0, |
| 498 | "tagValuesQuery": "", |
| 499 | "tags": [], |
| 500 | "tagsQuery": "", |
| 501 | "type": "query", |
| 502 | "useTags": false |
| 503 | }, |
| 504 | { |
| 505 | "allValue": "", |
| 506 | "current": { |
| 507 | "selected": true, |
| 508 | "text": [ |
| 509 | "All" |
| 510 | ], |
| 511 | "value": [ |
| 512 | "$__all" |
| 513 | ] |
| 514 | }, |
| 515 | "datasource": "$es_datasource", |
| 516 | "definition": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t", |
| 517 | "hide": 0, |
| 518 | "includeAll": true, |
| 519 | "label": "Container", |
| 520 | "multi": true, |
| 521 | "name": "es_container", |
| 522 | "options": [], |
| 523 | "query": "{\"find\": \"terms\", \"field\": \"kubernetes.container_name.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod\"}\t", |
| 524 | "refresh": 2, |
| 525 | "regex": "", |
| 526 | "skipUrlSync": false, |
| 527 | "sort": 0, |
| 528 | "tagValuesQuery": "", |
| 529 | "tags": [], |
| 530 | "tagsQuery": "", |
| 531 | "type": "query", |
| 532 | "useTags": false |
| 533 | }, |
| 534 | { |
| 535 | "allValue": "null OR *", |
| 536 | "current": { |
| 537 | "selected": true, |
| 538 | "text": [ |
| 539 | "All" |
| 540 | ], |
| 541 | "value": [ |
| 542 | "$__all" |
| 543 | ] |
| 544 | }, |
| 545 | "datasource": "$es_datasource", |
| 546 | "definition": "{\"find\": \"terms\", \"field\": \"logLevel.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.container_name.keyword:$es_container\"}\t", |
| 547 | "hide": 0, |
| 548 | "includeAll": true, |
| 549 | "label": "Log Level", |
| 550 | "multi": true, |
| 551 | "name": "es_loglevel", |
| 552 | "options": [], |
| 553 | "query": "{\"find\": \"terms\", \"field\": \"logLevel.keyword\",\"query\":\"kubernetes.namespace_name.keyword:$es_namespace AND kubernetes.pod_name.keyword:$es_pod AND kubernetes.container_name.keyword:$es_container\"}\t", |
| 554 | "refresh": 2, |
| 555 | "regex": "", |
| 556 | "skipUrlSync": false, |
| 557 | "sort": 0, |
| 558 | "tagValuesQuery": "", |
| 559 | "tags": [], |
| 560 | "tagsQuery": "", |
| 561 | "type": "query", |
| 562 | "useTags": false |
Andy Bavier | 8e69eb6 | 2021-03-05 13:55:13 -0700 | [diff] [blame^] | 563 | }, |
| 564 | { |
| 565 | "current": { |
| 566 | "selected": false, |
| 567 | "text": "*", |
| 568 | "value": "*" |
| 569 | }, |
| 570 | "hide": 0, |
| 571 | "label": "String", |
| 572 | "name": "search_string", |
| 573 | "options": [ |
| 574 | { |
| 575 | "selected": true, |
| 576 | "text": "*", |
| 577 | "value": "*" |
| 578 | } |
| 579 | ], |
| 580 | "query": "*", |
| 581 | "skipUrlSync": false, |
| 582 | "type": "textbox" |
Andy Bavier | 70b2a25 | 2021-03-04 09:33:23 -0700 | [diff] [blame] | 583 | } |
| 584 | ] |
| 585 | }, |
| 586 | "time": { |
| 587 | "from": "now-1h", |
| 588 | "to": "now" |
| 589 | }, |
| 590 | "timepicker": { |
| 591 | "refresh_intervals": [ |
| 592 | "5s", |
| 593 | "10s", |
| 594 | "30s", |
| 595 | "1m", |
| 596 | "5m", |
| 597 | "15m", |
| 598 | "30m", |
| 599 | "1h", |
| 600 | "2h", |
| 601 | "1d" |
| 602 | ], |
| 603 | "time_options": [ |
| 604 | "5m", |
| 605 | "15m", |
| 606 | "1h", |
| 607 | "6h", |
| 608 | "12h", |
| 609 | "24h", |
| 610 | "2d", |
| 611 | "7d", |
| 612 | "30d" |
| 613 | ] |
| 614 | }, |
| 615 | "timezone": "UTC", |
| 616 | "title": "Kubernetes / Logs / Pod", |
| 617 | "uid": "e2QUYvPMk", |
| 618 | "version": 1 |
| 619 | } |