diff --git a/monitoring/dashboards/kube/k8s-cluster-dashboard.json b/monitoring/dashboards/kube/k8s-cluster-dashboard.json index 79b603a1..62327f0d 100644 --- a/monitoring/dashboards/kube/k8s-cluster-dashboard.json +++ b/monitoring/dashboards/kube/k8s-cluster-dashboard.json @@ -26,7 +26,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -40,7 +40,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -51,7 +51,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -120,7 +120,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{id=\"/\",node=~\"^$Node$\"}) / sum (kube_node_status_capacity{resource=\"memory\",node=~\"^$Node$\"}) * 100", "interval": "10s", @@ -136,7 +136,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -206,7 +206,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",node=~\"^$Node$\"}[5m])) / sum (kube_node_status_capacity{resource=\"cpu\",node=~\"^$Node$\"}) * 100", "format": "time_series", @@ -222,7 +222,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -288,7 +288,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_fs_usage_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$|/dev/nvme.+\",id=\"/\",node=~\"^$Node$\"}) / sum (container_fs_limit_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$|/dev/nvme.+\",id=\"/\",node=~\"^$Node$\"}) * 100", "format": "time_series", @@ -302,7 +302,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_fs_usage_bytes{device=~\"^overlay$\",id=\"/\",node=~\"^$Node$\"}) / sum (container_fs_limit_bytes{device=~\"^overlay$\",id=\"/\",node=~\"^$Node$\"}) * 100", "format": "time_series", @@ -320,7 +320,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -386,7 +386,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{id=\"/\",node=~\"^$Node$\"})", "interval": "10s", @@ -401,7 +401,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -467,7 +467,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (kube_node_status_capacity{resource=\"memory\",node=~\"^$Node$\"})", "interval": "10s", @@ -482,7 +482,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -548,7 +548,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",node=~\"^$Node$\"}[5m]))", "format": "time_series", @@ -564,7 +564,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -630,7 +630,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (kube_node_status_capacity{resource=\"cpu\",node=~\"^$Node$\"})", "interval": "10s", @@ -645,7 +645,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -711,7 +711,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_fs_usage_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$|/dev/nvme.+\",id=\"/\",node=~\"^$Node$\"})", "format": "time_series", @@ -723,7 +723,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_fs_usage_bytes{device=~\"^overlay$\",id=\"/\",node=~\"^$Node$\"})", "format": "time_series", @@ -739,7 +739,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -805,7 +805,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_fs_limit_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$|/dev/nvme.+\",id=\"/\",node=~\"^$Node$\"})", "format": "time_series", @@ -823,7 +823,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -837,7 +837,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -848,7 +848,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -935,7 +935,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m]))", "format": "time_series", @@ -949,7 +949,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m]))", "format": "time_series", @@ -967,7 +967,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "description": "", "fieldConfig": { @@ -1055,7 +1055,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(rate(container_cpu_usage_seconds_total{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (namespace)", "format": "time_series", @@ -1073,7 +1073,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "description": "", "fieldConfig": { @@ -1161,7 +1161,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (namespace)", "format": "time_series", @@ -1180,7 +1180,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1193,7 +1193,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1278,7 +1278,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod)", "format": "time_series", @@ -1298,7 +1298,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1310,7 +1310,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1323,7 +1323,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1408,7 +1408,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container, pod)", "format": "time_series", @@ -1423,7 +1423,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name!~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, name, image)", "format": "time_series", @@ -1438,7 +1438,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{container!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, container)", "format": "time_series", @@ -1458,7 +1458,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1470,7 +1470,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1483,7 +1483,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1568,7 +1568,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{id!=\"/\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (id)", "format": "time_series", @@ -1589,7 +1589,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1601,7 +1601,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1614,7 +1614,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1699,7 +1699,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (pod)", "format": "time_series", @@ -1719,7 +1719,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1731,7 +1731,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1744,7 +1744,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1829,7 +1829,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",container!=\"POD\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (container, pod)", "format": "time_series", @@ -1843,7 +1843,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{image!=\"\",name!~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (node, name, image)", "format": "time_series", @@ -1857,7 +1857,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{container!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (node, container)", "format": "time_series", @@ -1877,7 +1877,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1889,7 +1889,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1902,7 +1902,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1988,7 +1988,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{id!=\"/\",node=~\"^$Node$\",namespace=~\"$Namespace\"}) by (id)", "format": "time_series", @@ -2008,7 +2008,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -2020,7 +2020,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -2033,7 +2033,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -2118,7 +2118,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod)", "format": "time_series", @@ -2132,7 +2132,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod)", "format": "time_series", @@ -2152,7 +2152,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -2164,7 +2164,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -2177,7 +2177,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -2262,7 +2262,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container, pod)", "format": "time_series", @@ -2277,7 +2277,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name=~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container, pod)", "format": "time_series", @@ -2292,7 +2292,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name!~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, name, image)", "format": "time_series", @@ -2307,7 +2307,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name!~\"^k8s_.*\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, name, image)", "format": "time_series", @@ -2322,7 +2322,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_transmit_bytes_total{container!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, container)", "format": "time_series", @@ -2337,7 +2337,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{container!=\"\",node=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (node, container)", "format": "time_series", @@ -2358,7 +2358,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -2375,6 +2375,19 @@ ], "templating": { "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "allValue": ".*", "current": { @@ -2388,7 +2401,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(kube_node_labels,label_workload_sas_com_class)", "hide": 0, @@ -2420,7 +2433,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(kube_node_labels{label_workload_sas_com_class=~\"$NodeClass\"},node)", "hide": 0, @@ -2451,7 +2464,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, diff --git a/monitoring/dashboards/kube/k8s-deployment-dashboard.json b/monitoring/dashboards/kube/k8s-deployment-dashboard.json index bc760c8c..755a1c6b 100644 --- a/monitoring/dashboards/kube/k8s-deployment-dashboard.json +++ b/monitoring/dashboards/kube/k8s-deployment-dashboard.json @@ -26,7 +26,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -95,7 +95,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{node=~\"^$Node$\",pod=~\"^$Deployment.*$\"}) / sum (kube_node_status_capacity{resource=\"memory\",node=~\"^$Node$\"}) * 100", "interval": "10s", @@ -111,7 +111,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -181,7 +181,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{node=~\"^$Node$\",pod=~\"^$Deployment.*$\"}[1m])) / sum (kube_node_status_capacity{resource=\"cpu\",node=~\"^$Node$\"}) * 100", "interval": "10s", @@ -197,7 +197,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -262,7 +262,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(kube_deployment_status_replicas_available{deployment=~\"^$Deployment$\"}) / sum(kube_deployment_status_replicas{deployment=~\"^$Deployment$\"}) * 100", "intervalFactor": 2, @@ -276,7 +276,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -337,7 +337,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{node=~\"^$Node$\",pod=~\"^$Deployment.*$\"})", "interval": "", @@ -353,7 +353,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -414,7 +414,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (kube_node_status_capacity{resource=\"memory\",node=~\"^$Node$\"})", "interval": "", @@ -430,7 +430,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -491,7 +491,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{node=~\"^$Node$\",pod=~\"^$Deployment.*$\"}[1m]))", "interval": "", @@ -507,7 +507,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -568,7 +568,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (kube_node_status_capacity{resource=\"cpu\",node=~\"^$Node$\"})", "intervalFactor": 2, @@ -582,7 +582,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -643,7 +643,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(kube_deployment_status_replicas_available{deployment=~\"^$Deployment$\"})", "interval": "", @@ -659,7 +659,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -720,7 +720,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(kube_deployment_status_replicas{deployment=~\"^$Deployment$\"})", "intervalFactor": 2, @@ -734,7 +734,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -822,7 +822,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",pod=~\"^$Deployment.*$\"}[1m])) by (pod)", "interval": "10s", @@ -839,7 +839,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -927,7 +927,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\",io_kubernetes_container_name!=\"POD\",pod=~\"^$Deployment.*$\"}[1m])) by (io_kubernetes_container_name, pod)", "hide": false, @@ -941,7 +941,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name!~\"^k8s_.*\",pod=~\"^$Deployment.*$\"}[1m])) by (pod, name, image)", "hide": false, @@ -955,7 +955,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{rkt_container_name!=\"\",pod=~\"^$Deployment.*$\"}[1m])) by (pod, rkt_container_name)", "interval": "10s", @@ -972,7 +972,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1060,7 +1060,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_cpu_usage_seconds_total{id!=\"/\",pod=~\"^$Deployment.*$\"}[1m])) by (id)", "hide": false, @@ -1078,7 +1078,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1164,7 +1164,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{image!=\"\",pod=~\"^$Deployment.*$\"}) by (pod)", "interval": "10s", @@ -1181,7 +1181,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1269,7 +1269,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (container_memory_working_set_bytes{id!=\"/\",pod=~\"^$Deployment.*$\"}) by (id)", "interval": "10s", @@ -1286,7 +1286,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1372,7 +1372,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",pod=~\"^$Deployment.*$\"}[1m])) by (pod)", "interval": "10s", @@ -1385,7 +1385,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",pod=~\"^$Deployment.*$\"}[1m])) by (pod)", "interval": "10s", @@ -1402,7 +1402,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1490,7 +1490,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (container_network_receive_bytes_total{id!=\"/\",pod=~\"^$Deployment.*$\"}[1m])) by (id)", "interval": "10s", @@ -1503,7 +1503,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (rate (container_network_transmit_bytes_total{id!=\"/\",pod=~\"^$Deployment.*$\"}[1m])) by (id)", "interval": "10s", @@ -1525,6 +1525,19 @@ ], "templating": { "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "allValue": ".*", "current": { @@ -1534,7 +1547,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, @@ -1561,7 +1574,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 2, diff --git a/monitoring/dashboards/kube/perf-k8s-container-util.json b/monitoring/dashboards/kube/perf-k8s-container-util.json index 977057ae..1de22eb0 100644 --- a/monitoring/dashboards/kube/perf-k8s-container-util.json +++ b/monitoring/dashboards/kube/perf-k8s-container-util.json @@ -29,7 +29,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -43,7 +43,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1657,7 +1657,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -3350,7 +3350,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } diff --git a/monitoring/dashboards/kube/perf-k8s-node-util.json b/monitoring/dashboards/kube/perf-k8s-node-util.json index 771b8db8..2304a468 100644 --- a/monitoring/dashboards/kube/perf-k8s-node-util.json +++ b/monitoring/dashboards/kube/perf-k8s-node-util.json @@ -25,7 +25,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -39,7 +39,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -263,7 +263,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -277,7 +277,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -500,7 +500,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -514,7 +514,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -831,7 +831,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -845,7 +845,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1064,7 +1064,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1078,7 +1078,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } diff --git a/monitoring/dashboards/kube/prometheus-alerts.json b/monitoring/dashboards/kube/prometheus-alerts.json index 3c2e9a39..267e1263 100644 --- a/monitoring/dashboards/kube/prometheus-alerts.json +++ b/monitoring/dashboards/kube/prometheus-alerts.json @@ -1,574 +1,587 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "Alerts from prometheus.", - "editable": true, - "fiscalYearStartMonth": 0, - "gnetId": 5450, - "graphTooltip": 0, - "id": 49, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "#EAB839", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 4, - "x": 0, - "y": 0 - }, - "id": 23, - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) OR vector(0)", - "format": "time_series", - "interval": "2m", - "intervalFactor": 1, - "legendFormat": "", - "refId": "A" - } - ], - "title": "Alerts", - "type": "stat" + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Alerts from prometheus.", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 5450, + "graphTooltip": 0, + "id": 49, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" + "gridPos": { + "h": 8, + "w": 4, + "x": 0, + "y": 0 }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "decimals": 0, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent", - "value": null - } - ] - }, - "unit": "short" + "id": 23, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) OR vector(0)", + "format": "time_series", + "interval": "2m", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Alerts", + "type": "stat" }, - "overrides": [ - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsZero", - "value": 0 - } + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 20, + "x": 4, + "y": 0 }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false + "id": 25, + "options": { + "legend": { + "calcs": [ + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "desc" } - } - ] - }, - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsNull", - "value": 0 - } }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false + "pluginVersion": "7.1.0", + "targets": [ + { + "calculatedInterval": "10s", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "datasourceErrors": {}, + "errors": {}, + "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) by (alertname)", + "format": "time_series", + "interval": "2m", + "intervalFactor": 1, + "legendFormat": "{{alertname}}", + "metric": "probe_http_status_code", + "refId": "A", + "step": 60, + "target": "" } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 20, - "x": 4, - "y": 0 - }, - "id": 25, - "options": { - "legend": { - "calcs": [ - "max", - "lastNotNull" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + ], + "title": "Alerts", + "type": "timeseries" }, - "tooltip": { - "maxHeight": 600, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "7.1.0", - "targets": [ { - "calculatedInterval": "10s", - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) by (alertname)", - "format": "time_series", - "interval": "2m", - "intervalFactor": 1, - "legendFormat": "{{alertname}}", - "metric": "probe_http_status_code", - "refId": "A", - "step": 60, - "target": "" - } - ], - "title": "Alerts", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "description": "", - "fieldConfig": { - "defaults": { - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "displayName", - "value": "Date" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.hidden", - "value": true - }, - { - "id": "links", - "value": [ - { - "targetBlank": false, - "title": "", - "url": " " - } + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "align": "auto", + "cellOptions": { + "type": "color-text" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "displayName", + "value": "Date" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.hidden", + "value": true + }, + { + "id": "links", + "value": [ + { + "targetBlank": false, + "title": "", + "url": " " + } + ] + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "displayName", + "value": "Count" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.align" + }, + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "severity" + }, + "properties": [ + { + "id": "displayName", + "value": "Severity" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "alertname" + }, + "properties": [ + { + "id": "displayName", + "value": "Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "alertstate" + }, + "properties": [ + { + "id": "displayName", + "value": "State" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align" + } + ] + } ] - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" }, - "properties": [ - { - "id": "displayName", - "value": "Count" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.align" - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null + "gridPos": { + "h": 16, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 24, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.0.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) by (alertname,alertstate,severity)", + "format": "table", + "instant": true, + "interval": "", + "intervalFactor": 2, + "legendFormat": "service: {{service}} instance: {{instance}} alertname: {{alertname}}", + "refId": "A", + "step": 4 + } + ], + "title": "Current Alerts", + "transformations": [ + { + "id": "merge", + "options": { + "reducers": [] } - ] } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "severity" - }, - "properties": [ - { - "id": "displayName", - "value": "Severity" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "alertname" + ], + "type": "table" + } + ], + "refresh": "1m", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" }, - "properties": [ - { - "id": "displayName", - "value": "Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "alertstate" + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "label_values(ALERTS,alertname)", + "hide": 0, + "includeAll": true, + "label": "alertname", + "multi": true, + "name": "alertname", + "options": [], + "query": "label_values(ALERTS,alertname)", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query", + "useTags": false }, - "properties": [ - { - "id": "displayName", - "value": "State" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - } + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "hide": 0, + "includeAll": true, + "label": "alertstate", + "multi": true, + "name": "alertstate", + "options": [ + { + "selected": true, + "text": "All", + "value": "$__all" + }, + { + "selected": false, + "text": "firing", + "value": "firing" + }, + { + "selected": false, + "text": "pending", + "value": "pending" + } + ], + "query": "firing, pending", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } ] - }, - "gridPos": { - "h": 16, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 24, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "expr": "count(ALERTS{alertstate=~\"$alertstate\"}) by (alertname,alertstate,severity)", - "format": "table", - "instant": true, - "interval": "", - "intervalFactor": 2, - "legendFormat": "service: {{service}} instance: {{instance}} alertname: {{alertname}}", - "refId": "A", - "step": 4 - } - ], - "title": "Current Alerts", - "transformations": [ - { - "id": "merge", - "options": { - "reducers": [] - } - } - ], - "type": "table" - } - ], - "refresh": "1m", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(ALERTS,alertname)", - "hide": 0, - "includeAll": true, - "label": "alertname", - "multi": true, - "name": "alertname", - "options": [], - "query": "label_values(ALERTS,alertname)", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "hide": 0, - "includeAll": true, - "label": "alertstate", - "multi": true, - "name": "alertstate", - "options": [ - { - "selected": true, - "text": "All", - "value": "$__all" - }, - { - "selected": false, - "text": "firing", - "value": "firing" - }, - { - "selected": false, - "text": "pending", - "value": "pending" - } + }, + "time": { + "from": "now-24h", + "to": "now" + }, + "timeRangeUpdatedDuringEditOrView": false, + "timepicker": { + "collapse": false, + "enable": true, + "notice": false, + "now": true, + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" ], - "query": "firing, pending", - "queryValue": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "timeRangeUpdatedDuringEditOrView": false, - "timepicker": { - "collapse": false, - "enable": true, - "notice": false, - "now": true, - "refresh_intervals": [ - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "status": "Stable", - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ], - "type": "timepicker" - }, - "timezone": "browser", - "title": "Alerts", - "uid": "SOn6MeNmk", - "version": 1, - "weekStart": "" + "status": "Stable", + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ], + "type": "timepicker" + }, + "timezone": "browser", + "title": "Alerts", + "uid": "SOn6MeNmk", + "version": 1, + "weekStart": "" } diff --git a/monitoring/dashboards/logging/elasticsearch-dashboard.json b/monitoring/dashboards/logging/elasticsearch-dashboard.json index d9f8bcf7..a0eae60f 100644 --- a/monitoring/dashboards/logging/elasticsearch-dashboard.json +++ b/monitoring/dashboards/logging/elasticsearch-dashboard.json @@ -73,7 +73,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -87,7 +87,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -778,7 +778,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -792,7 +792,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1291,7 +1291,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1512,7 +1512,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1524,7 +1524,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1735,7 +1735,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1747,7 +1747,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1966,7 +1966,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1978,7 +1978,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1992,7 +1992,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -2485,7 +2485,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -2499,7 +2499,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -2745,7 +2745,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -2759,7 +2759,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -3283,7 +3283,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -3702,7 +3702,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -3714,7 +3714,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -4186,7 +4186,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -4198,7 +4198,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -4693,7 +4693,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -4705,7 +4705,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -5235,7 +5235,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -5247,7 +5247,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -5460,7 +5460,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -5472,7 +5472,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -5784,7 +5784,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -5796,7 +5796,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -6051,7 +6051,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -6063,7 +6063,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -6470,7 +6470,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -6482,7 +6482,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -6695,7 +6695,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -6707,7 +6707,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -6920,7 +6920,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -6932,7 +6932,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -7145,7 +7145,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -7157,7 +7157,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -7370,7 +7370,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -7382,7 +7382,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -7595,7 +7595,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -7607,7 +7607,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -7820,7 +7820,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -7832,7 +7832,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -8085,7 +8085,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } diff --git a/monitoring/dashboards/logging/fluent-bit.json b/monitoring/dashboards/logging/fluent-bit.json index 6b45f3e9..fa8ced5a 100644 --- a/monitoring/dashboards/logging/fluent-bit.json +++ b/monitoring/dashboards/logging/fluent-bit.json @@ -32,7 +32,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -46,7 +46,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -532,7 +532,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -546,7 +546,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } diff --git a/monitoring/dashboards/nginx/nginx-dashboard.json b/monitoring/dashboards/nginx/nginx-dashboard.json index 0abed3ad..104d9dd0 100644 --- a/monitoring/dashboards/nginx/nginx-dashboard.json +++ b/monitoring/dashboards/nginx/nginx-dashboard.json @@ -16,7 +16,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "enable": true, "expr": "sum(changes(nginx_ingress_controller_config_last_reload_successful_timestamp_seconds{instance!=\"unknown\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[30s])) by (controller_class)", @@ -41,7 +41,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -100,7 +100,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "round(sum(irate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[2m])), 0.001)", "format": "time_series", @@ -115,7 +115,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -180,7 +180,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(avg_over_time(nginx_ingress_controller_nginx_process_connections{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m]))", "format": "time_series", @@ -196,7 +196,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -265,7 +265,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",status!~\"[4-5].*\"}[2m])) / sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\"}[2m]))", "format": "time_series", @@ -280,7 +280,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -346,7 +346,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "avg(irate(nginx_ingress_controller_success{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[1m])) * 60", "format": "time_series", @@ -362,7 +362,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -428,7 +428,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "count(nginx_ingress_controller_config_last_reload_successful{controller_pod=~\"$controller\",controller_namespace=~\"$namespace\"} == 0)", "format": "time_series", @@ -444,7 +444,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -550,7 +550,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "round(sum(irate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress), 0.001)", "format": "time_series", @@ -570,7 +570,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -720,7 +720,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",ingress=~\"$ingress\",status!~\"[4-5].*\"}[2m])) by (ingress) / sum(rate(nginx_ingress_controller_requests{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)", "format": "time_series", @@ -739,7 +739,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -824,7 +824,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (irate (nginx_ingress_controller_request_size_sum{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m]))", "format": "time_series", @@ -839,7 +839,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "- sum (irate (nginx_ingress_controller_response_size_sum{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m]))", "format": "time_series", @@ -858,7 +858,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -989,7 +989,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "avg(nginx_ingress_controller_nginx_process_resident_memory_bytes{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}) ", "format": "time_series", @@ -1008,7 +1008,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1122,7 +1122,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum (rate (nginx_ingress_controller_nginx_process_cpu_seconds_total{controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\"}[2m])) ", "format": "time_series", @@ -1140,7 +1140,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1416,7 +1416,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "histogram_quantile(0.50, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))", "format": "table", @@ -1429,7 +1429,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "histogram_quantile(0.90, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))", "format": "table", @@ -1442,7 +1442,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "histogram_quantile(0.99, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (le, ingress))", "format": "table", @@ -1455,7 +1455,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(irate(nginx_ingress_controller_request_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)", "format": "table", @@ -1469,7 +1469,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "sum(irate(nginx_ingress_controller_response_size_sum{ingress!=\"\",controller_pod=~\"$controller\",controller_class=~\"$controller_class\",controller_namespace=~\"$namespace\",ingress=~\"$ingress\"}[2m])) by (ingress)", "format": "table", @@ -1504,7 +1504,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1615,7 +1615,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "expr": "avg(nginx_ingress_controller_ssl_expire_time_seconds{kubernetes_pod_name=~\"$controller\",namespace=~\"$namespace\",ingress=~\"$ingress\"}) by (host) - time()", "format": "time_series", @@ -1659,7 +1659,7 @@ "includeAll": false, "label": "datasource", "multi": false, - "name": "DS_PROMETHEUS", + "name": "datasource", "options": [], "query": "prometheus", "refresh": 1, @@ -1676,7 +1676,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, @@ -1704,7 +1704,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, @@ -1732,7 +1732,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, @@ -1760,7 +1760,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "", "hide": 0, diff --git a/monitoring/dashboards/pgmonitor/pg-details.json b/monitoring/dashboards/pgmonitor/pg-details.json index aba7678c..4a0d20c9 100644 --- a/monitoring/dashboards/pgmonitor/pg-details.json +++ b/monitoring/dashboards/pgmonitor/pg-details.json @@ -2091,6 +2091,19 @@ ], "templating": { "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "current": { "isNone": true, @@ -2100,7 +2113,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "query_result( up{ exp_type = 'pg' } )", "hide": 0, @@ -2131,7 +2144,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "query_result( ccp_backrest_last_info_backup_runtime_seconds{job=~\"$pgnodes\"} )", "hide": 0, @@ -2161,7 +2174,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "query_result(pg_exporter_last_scrape_duration_seconds)", "hide": 0, diff --git a/monitoring/dashboards/viya/postgres-dashboard.json b/monitoring/dashboards/viya/postgres-dashboard.json index d10e1dc4..ca2012e0 100644 --- a/monitoring/dashboards/viya/postgres-dashboard.json +++ b/monitoring/dashboards/viya/postgres-dashboard.json @@ -34,7 +34,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -48,7 +48,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "refId": "A" } @@ -860,7 +860,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -874,7 +874,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "refId": "A" } @@ -1590,7 +1590,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "gridPos": { "h": 1, @@ -1604,7 +1604,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "${DS_PROMETHEUS}" }, "refId": "A" } diff --git a/monitoring/dashboards/viya/sas-arke-dashboard.json b/monitoring/dashboards/viya/sas-arke-dashboard.json index 6370701a..1a7f4d6e 100644 --- a/monitoring/dashboards/viya/sas-arke-dashboard.json +++ b/monitoring/dashboards/viya/sas-arke-dashboard.json @@ -314,6 +314,19 @@ ], "templating": { "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "current": { "selected": false, @@ -322,7 +335,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(arke_request_total,namespace)", "hide": 0, diff --git a/monitoring/dashboards/viya/sas-launched-jobs-node.json b/monitoring/dashboards/viya/sas-launched-jobs-node.json index aa896579..ca2c96d9 100644 --- a/monitoring/dashboards/viya/sas-launched-jobs-node.json +++ b/monitoring/dashboards/viya/sas-launched-jobs-node.json @@ -32,7 +32,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -46,7 +46,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -592,7 +592,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -606,7 +606,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1056,7 +1056,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1498,7 +1498,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1692,7 +1692,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(:sas_launcher_pod_info:{node=~\"$node\",namespace=~\"$namespace\", label_launcher_sas_com_job_type=~\"$jobType\",label_launcher_sas_com_username=~\"$user\"}, job_name)", "hide": 0, @@ -1727,7 +1727,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(:sas_launcher_pod_info:{node=~\"$node\",namespace=~\"$namespace\", label_launcher_sas_com_job_type=~\"$jobType\",label_launcher_sas_com_username=~\"$user\",job_name=~\"$jobName\"}, queue_name)", "hide": 0, diff --git a/monitoring/dashboards/viya/sas-launched-jobs-users.json b/monitoring/dashboards/viya/sas-launched-jobs-users.json index e5d4c351..461a5d87 100644 --- a/monitoring/dashboards/viya/sas-launched-jobs-users.json +++ b/monitoring/dashboards/viya/sas-launched-jobs-users.json @@ -32,7 +32,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -46,7 +46,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -511,7 +511,7 @@ "collapsed": false, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -525,7 +525,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1068,7 +1068,7 @@ "collapsed": true, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "gridPos": { "h": 1, @@ -1511,7 +1511,7 @@ { "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "refId": "A" } @@ -1671,7 +1671,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(:sas_launcher_pod_info:{namespace=~\"$namespace\", label_launcher_sas_com_job_type=~\"$jobType\",label_launcher_sas_com_username=~\"$user\"},job_name)", "hide": 0, @@ -1706,7 +1706,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(:sas_launcher_pod_info:{namespace=~\"$namespace\", label_launcher_sas_com_job_type=~\"$jobType\",label_launcher_sas_com_username=~\"$user\",job_name=~\"$jobName\"}, queue_name)", "hide": 0, diff --git a/monitoring/dashboards/viya/sas-mas-dashboard.json b/monitoring/dashboards/viya/sas-mas-dashboard.json index 5280d89c..3803b204 100644 --- a/monitoring/dashboards/viya/sas-mas-dashboard.json +++ b/monitoring/dashboards/viya/sas-mas-dashboard.json @@ -1527,6 +1527,19 @@ ], "templating": { "list": [ + { + "allowCustomValue": false, + "current": { + "text": "Prometheus", + "value": "prometheus" + }, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "current": { "isNone": true, @@ -1536,7 +1549,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(mas_module_execution_seconds_count,module)", "hide": 0, @@ -1640,7 +1653,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(mas_module_execution_seconds_count, client_id)", "hide": 0, diff --git a/monitoring/dashboards/viya/sas-opensearch.json b/monitoring/dashboards/viya/sas-opensearch.json index 7f06f186..8fa90343 100644 --- a/monitoring/dashboards/viya/sas-opensearch.json +++ b/monitoring/dashboards/viya/sas-opensearch.json @@ -3048,7 +3048,7 @@ }, "datasource": { "type": "prometheus", - "uid": "PBFA97CFB590B2093" + "uid": "$datasource" }, "definition": "label_values(opensearch_cluster_status,namespace)", "hide": 0,