|
29 | 29 | "name": "Stat", |
30 | 30 | "version": "" |
31 | 31 | }, |
| 32 | + { |
| 33 | + "type": "panel", |
| 34 | + "id": "status-history", |
| 35 | + "name": "Status history", |
| 36 | + "version": "" |
| 37 | + }, |
32 | 38 | { |
33 | 39 | "type": "panel", |
34 | 40 | "id": "timeseries", |
|
441 | 447 | "color": { |
442 | 448 | "mode": "thresholds" |
443 | 449 | }, |
444 | | - "mappings": [], |
| 450 | + "custom": { |
| 451 | + "fillOpacity": 70, |
| 452 | + "hideFrom": { |
| 453 | + "legend": false, |
| 454 | + "tooltip": false, |
| 455 | + "viz": false |
| 456 | + }, |
| 457 | + "lineWidth": 1 |
| 458 | + }, |
| 459 | + "mappings": [ |
| 460 | + { |
| 461 | + "options": { |
| 462 | + "3": { |
| 463 | + "color": "green", |
| 464 | + "index": 1, |
| 465 | + "text": "up" |
| 466 | + } |
| 467 | + }, |
| 468 | + "type": "value" |
| 469 | + }, |
| 470 | + { |
| 471 | + "options": { |
| 472 | + "from": 1, |
| 473 | + "result": { |
| 474 | + "color": "dark-red", |
| 475 | + "index": 0, |
| 476 | + "text": "down" |
| 477 | + }, |
| 478 | + "to": 2 |
| 479 | + }, |
| 480 | + "type": "range" |
| 481 | + }, |
| 482 | + { |
| 483 | + "options": { |
| 484 | + "match": "null", |
| 485 | + "result": { |
| 486 | + "color": "text", |
| 487 | + "index": 2, |
| 488 | + "text": "no data" |
| 489 | + } |
| 490 | + }, |
| 491 | + "type": "special" |
| 492 | + } |
| 493 | + ], |
445 | 494 | "thresholds": { |
446 | 495 | "mode": "absolute", |
447 | 496 | "steps": [ |
|
465 | 514 | "y": 4 |
466 | 515 | }, |
467 | 516 | "id": 19, |
| 517 | + "maxDataPoints": 10, |
468 | 518 | "options": { |
469 | | - "colorMode": "value", |
470 | | - "graphMode": "area", |
471 | | - "justifyMode": "auto", |
472 | | - "orientation": "auto", |
473 | | - "percentChangeColorMode": "standard", |
474 | | - "reduceOptions": { |
475 | | - "calcs": [ |
476 | | - "lastNotNull" |
477 | | - ], |
478 | | - "fields": "", |
479 | | - "values": false |
| 519 | + "colWidth": 0.9, |
| 520 | + "legend": { |
| 521 | + "displayMode": "list", |
| 522 | + "placement": "bottom", |
| 523 | + "showLegend": false |
480 | 524 | }, |
481 | | - "showPercentChange": false, |
482 | | - "textMode": "auto", |
483 | | - "wideLayout": true |
| 525 | + "rowHeight": 0.9, |
| 526 | + "showValue": "auto", |
| 527 | + "tooltip": { |
| 528 | + "mode": "single", |
| 529 | + "sort": "none" |
| 530 | + } |
484 | 531 | }, |
485 | 532 | "pluginVersion": "11.2.2", |
486 | 533 | "targets": [ |
|
494 | 541 | "displayAliasType": "Warning / Critical", |
495 | 542 | "displayType": "Regular", |
496 | 543 | "displayValueWithAlias": "Never", |
497 | | - "expr": "erlang_vm_dist_node_state * on(instance, job) group_left(rabbitmq_node, rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}", |
| 544 | + "editorMode": "code", |
| 545 | + "expr": "erlang_vm_dist_node_state{peer!~\"rabbitmqcli.*\"} * on(rabbitmq_instance, job) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\", namespace=\"$namespace\"}", |
498 | 546 | "format": "time_series", |
499 | 547 | "intervalFactor": 1, |
500 | | - "legendFormat": " {{rabbitmq_node}} -> {{peer}}", |
| 548 | + "legendFormat": "{{rabbitmq_instance}} -> {{ peer }}", |
| 549 | + "range": true, |
501 | 550 | "refId": "A", |
502 | 551 | "units": "none", |
503 | 552 | "valueHandler": "Number Threshold" |
504 | 553 | } |
505 | 554 | ], |
506 | 555 | "title": "State of distribution links", |
507 | | - "type": "stat" |
| 556 | + "type": "status-history" |
508 | 557 | }, |
509 | 558 | { |
510 | 559 | "datasource": { |
|
2363 | 2412 | "mode": "palette-classic" |
2364 | 2413 | }, |
2365 | 2414 | "custom": { |
| 2415 | + "axisBorderShow": false, |
| 2416 | + "axisCenteredZero": false, |
| 2417 | + "axisColorMode": "text", |
2366 | 2418 | "axisLabel": "", |
2367 | 2419 | "axisPlacement": "auto", |
2368 | 2420 | "barAlignment": 0, |
| 2421 | + "barWidthFactor": 0.6, |
2369 | 2422 | "drawStyle": "line", |
2370 | 2423 | "fillOpacity": 0, |
2371 | 2424 | "gradientMode": "none", |
|
2374 | 2427 | "tooltip": false, |
2375 | 2428 | "viz": false |
2376 | 2429 | }, |
| 2430 | + "insertNulls": false, |
2377 | 2431 | "lineInterpolation": "linear", |
2378 | 2432 | "lineWidth": 1, |
2379 | 2433 | "pointSize": 5, |
|
2398 | 2452 | "mode": "absolute", |
2399 | 2453 | "steps": [ |
2400 | 2454 | { |
2401 | | - "color": "green" |
| 2455 | + "color": "green", |
| 2456 | + "value": null |
2402 | 2457 | }, |
2403 | 2458 | { |
2404 | 2459 | "color": "red", |
|
2580 | 2635 | "showLegend": false |
2581 | 2636 | }, |
2582 | 2637 | "tooltip": { |
2583 | | - "mode": "multi" |
| 2638 | + "mode": "multi", |
| 2639 | + "sort": "none" |
2584 | 2640 | } |
2585 | 2641 | }, |
2586 | 2642 | "pluginVersion": "8.3.4", |
|
2612 | 2668 | "mode": "palette-classic" |
2613 | 2669 | }, |
2614 | 2670 | "custom": { |
| 2671 | + "axisBorderShow": false, |
| 2672 | + "axisCenteredZero": false, |
| 2673 | + "axisColorMode": "text", |
2615 | 2674 | "axisLabel": "", |
2616 | 2675 | "axisPlacement": "auto", |
2617 | 2676 | "barAlignment": 0, |
| 2677 | + "barWidthFactor": 0.6, |
2618 | 2678 | "drawStyle": "line", |
2619 | 2679 | "fillOpacity": 10, |
2620 | 2680 | "gradientMode": "none", |
|
2623 | 2683 | "tooltip": false, |
2624 | 2684 | "viz": false |
2625 | 2685 | }, |
| 2686 | + "insertNulls": false, |
2626 | 2687 | "lineInterpolation": "linear", |
2627 | 2688 | "lineWidth": 1, |
2628 | 2689 | "pointSize": 5, |
|
2647 | 2708 | "mode": "absolute", |
2648 | 2709 | "steps": [ |
2649 | 2710 | { |
2650 | | - "color": "transparent" |
| 2711 | + "color": "transparent", |
| 2712 | + "value": null |
2651 | 2713 | }, |
2652 | 2714 | { |
2653 | 2715 | "color": "red", |
|
2694 | 2756 | "showLegend": false |
2695 | 2757 | }, |
2696 | 2758 | "tooltip": { |
2697 | | - "mode": "multi" |
| 2759 | + "mode": "multi", |
| 2760 | + "sort": "none" |
2698 | 2761 | } |
2699 | 2762 | }, |
2700 | 2763 | "pluginVersion": "8.3.4", |
|
0 commit comments