Skip to content

Commit 7d7cec2

Browse files
easyCZroboquat
authored andcommitted
[usage] Simplify dashboard by showing gauge and history in the same graph
1 parent 5cf3893 commit 7d7cec2

File tree

1 file changed

+11
-118
lines changed
  • operations/observability/mixins/meta/dashboards/components

1 file changed

+11
-118
lines changed

operations/observability/mixins/meta/dashboards/components/usage.json

Lines changed: 11 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"editable": true,
2626
"fiscalYearStartMonth": 0,
2727
"graphTooltip": 1,
28-
"id": 52,
28+
"id": 54,
2929
"links": [
3030
{
3131
"asDropdown": false,
@@ -542,6 +542,9 @@
542542
},
543543
"id": 18,
544544
"options": {
545+
"colorMode": "value",
546+
"graphMode": "area",
547+
"justifyMode": "auto",
545548
"orientation": "auto",
546549
"reduceOptions": {
547550
"calcs": [
@@ -550,10 +553,9 @@
550553
"fields": "",
551554
"values": false
552555
},
553-
"showThresholdLabels": false,
554-
"showThresholdMarkers": true
556+
"textMode": "value"
555557
},
556-
"pluginVersion": "9.1.5",
558+
"pluginVersion": "9.1.6",
557559
"targets": [
558560
{
559561
"datasource": {
@@ -568,112 +570,7 @@
568570
}
569571
],
570572
"title": "Time since last successful run",
571-
"type": "gauge"
572-
},
573-
{
574-
"datasource": {
575-
"type": "prometheus",
576-
"uid": "P4169E866C3094E38"
577-
},
578-
"fieldConfig": {
579-
"defaults": {
580-
"color": {
581-
"mode": "palette-classic"
582-
},
583-
"custom": {
584-
"axisCenteredZero": false,
585-
"axisColorMode": "text",
586-
"axisLabel": "",
587-
"axisPlacement": "auto",
588-
"barAlignment": 0,
589-
"drawStyle": "line",
590-
"fillOpacity": 0,
591-
"gradientMode": "none",
592-
"hideFrom": {
593-
"legend": false,
594-
"tooltip": false,
595-
"viz": false
596-
},
597-
"lineInterpolation": "linear",
598-
"lineWidth": 1,
599-
"pointSize": 5,
600-
"scaleDistribution": {
601-
"type": "linear"
602-
},
603-
"showPoints": "auto",
604-
"spanNulls": false,
605-
"stacking": {
606-
"group": "A",
607-
"mode": "none"
608-
},
609-
"thresholdsStyle": {
610-
"mode": "line"
611-
}
612-
},
613-
"mappings": [],
614-
"thresholds": {
615-
"mode": "absolute",
616-
"steps": [
617-
{
618-
"color": "green",
619-
"value": null
620-
},
621-
{
622-
"color": "red",
623-
"value": 900
624-
}
625-
]
626-
},
627-
"unit": "s"
628-
},
629-
"overrides": []
630-
},
631-
"gridPos": {
632-
"h": 8,
633-
"w": 12,
634-
"x": 12,
635-
"y": 19
636-
},
637-
"id": 20,
638-
"options": {
639-
"legend": {
640-
"calcs": [],
641-
"displayMode": "list",
642-
"placement": "bottom",
643-
"showLegend": true
644-
},
645-
"tooltip": {
646-
"mode": "single",
647-
"sort": "none"
648-
}
649-
},
650-
"targets": [
651-
{
652-
"datasource": {
653-
"type": "prometheus",
654-
"uid": "P4169E866C3094E38"
655-
},
656-
"editorMode": "code",
657-
"expr": "time() - max_over_time(max(gitpod_usage_ledger_last_completed_time{outcome=\"success\"}[15m]))",
658-
"legendFormat": "success",
659-
"range": true,
660-
"refId": "A"
661-
},
662-
{
663-
"datasource": {
664-
"type": "prometheus",
665-
"uid": "P4169E866C3094E38"
666-
},
667-
"editorMode": "code",
668-
"expr": "time() - max_over_time(max(gitpod_usage_ledger_last_completed_time{outcome=\"error\"}[15m]))",
669-
"hide": false,
670-
"legendFormat": "error",
671-
"range": true,
672-
"refId": "B"
673-
}
674-
],
675-
"title": "Time since last ledger completion, by outcome",
676-
"type": "timeseries"
573+
"type": "stat"
677574
},
678575
{
679576
"datasource": {
@@ -737,7 +634,7 @@
737634
"h": 8,
738635
"w": 12,
739636
"x": 12,
740-
"y": 27
637+
"y": 19
741638
},
742639
"id": 22,
743640
"options": {
@@ -781,13 +678,9 @@
781678
{
782679
"allValue": ".*",
783680
"current": {
784-
"selected": true,
785-
"text": [
786-
"stag-meta-eu02"
787-
],
788-
"value": [
789-
"stag-meta-eu02"
790-
]
681+
"selected": false,
682+
"text": "All",
683+
"value": "$__all"
791684
},
792685
"datasource": {
793686
"type": "prometheus",

0 commit comments

Comments
 (0)