From 3d7a40d2ff2ae86015cf712d9cb2f201f4ba9c43 Mon Sep 17 00:00:00 2001 From: Pranav Patil Date: Thu, 30 Apr 2026 15:35:04 +0500 Subject: [PATCH 1/2] chart alignment --- .../paas-geo-monitor-grafana-dashboard.json | 1712 +++++++++++++++++ .../site-manager-grafana-dashboard.json | 1712 +++++++++++++++++ .../site-manager/resource-profiles/dev.yaml | 1 + .../site-manager/resource-profiles/large.yaml | 1 + .../resource-profiles/medium.yaml | 1 + .../site-manager/resource-profiles/prod.yaml | 1 + .../site-manager/resource-profiles/small.yaml | 1 + .../templates/grafana-dashboard.yaml | 25 + .../paas-geo-monitor-service-monitor.yaml | 29 + .../templates/service-monitor.yaml | 29 + charts/site-manager/values.yaml | 8 + 11 files changed, 3520 insertions(+) create mode 100644 charts/site-manager/monitoring/paas-geo-monitor-grafana-dashboard.json create mode 100644 charts/site-manager/monitoring/site-manager-grafana-dashboard.json create mode 100644 charts/site-manager/resource-profiles/dev.yaml create mode 100644 charts/site-manager/resource-profiles/large.yaml create mode 100644 charts/site-manager/resource-profiles/medium.yaml create mode 100644 charts/site-manager/resource-profiles/prod.yaml create mode 100644 charts/site-manager/resource-profiles/small.yaml create mode 100644 charts/site-manager/templates/grafana-dashboard.yaml create mode 100644 charts/site-manager/templates/paas-geo-monitor-service-monitor.yaml create mode 100644 charts/site-manager/templates/service-monitor.yaml diff --git a/charts/site-manager/monitoring/paas-geo-monitor-grafana-dashboard.json b/charts/site-manager/monitoring/paas-geo-monitor-grafana-dashboard.json new file mode 100644 index 0000000..6df9349 --- /dev/null +++ b/charts/site-manager/monitoring/paas-geo-monitor-grafana-dashboard.json @@ -0,0 +1,1712 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 32, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 68, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "refId": "A" + } + ], + "title": "Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows thirdparties versions for paas-geo-monitor", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "fieldMinMax": false, + "mappings": [], + "noValue": "Not installed", + "thresholds": { + "mode": "absolute", + "steps": [] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 0, + "y": 1 + }, + "id": 94, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": [], + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 1, + "showHeader": true + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "group (label_replace(kube_pod_container_info{container=~\"calico-node\", cluster=~'$instance'}, \"version\", \"$2\", \"image\", \"(?:.+/)?([^:]+)(?::(.+))?\")) by (version, cluster, instance)", + "format": "table", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "calico", + "range": false, + "refId": "calico" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "group (label_replace(kube_pod_container_info{container=~\"calico-apiserver\", cluster=~'$instance'}, \"version\", \"$2\", \"image\", \"(?:.+/)?([^:]+)(?::(.+))?\")) by (version, cluster, instance)\r\nor on()\r\ngroup (label_replace(kube_pod_container_info{container=~\"calico-node\", cluster=~'$instance'}, \"version\", \"Not installed\", \"\", \"\")) by (version, cluster, instance)", + "format": "table", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "calico", + "range": false, + "refId": "calico-apiserver" + } + ], + "title": "Paas-geo-monitor thirdparties", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "instance", + "mode": "outerTabular" + } + }, + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "cluster 1", + "version 1", + "version 2" + ] + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "includeByName": {}, + "indexByName": { + "cluster 1": 0, + "version 1": 1, + "version 2": 2 + }, + "renameByName": { + "cluster": "cluster", + "cluster 1": "cluster", + "cluster 2": "", + "version 1": "calico", + "version 2": "calico-apiserver" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates peers dns status", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-orange", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + }, + "-1": { + "color": "dark-red", + "index": 3, + "text": "ERROR" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "ERROR" + } + }, + "type": "special" + } + ], + "max": 1, + "min": -1, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 6, + "y": 1 + }, + "id": 87, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (peer_name) (peer_dns_status{namespace='$namespace', cluster=~'$instance'})", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{peer_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Peers dns status", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates peers pod to service status", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-orange", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + }, + "-1": { + "color": "dark-red", + "index": 3, + "text": "ERROR" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "ERROR" + } + }, + "type": "special" + } + ], + "max": 1, + "min": -1, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 12, + "y": 1 + }, + "id": 88, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (peer_name) (peer_svc_status{namespace='$namespace', cluster=~'$instance'})", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{peer_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Peers pod2service status", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates peers pod to pod status", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-orange", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + }, + "-1": { + "color": "dark-red", + "index": 3, + "text": "ERROR" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "ERROR" + } + }, + "type": "special" + } + ], + "max": 1, + "min": -1, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 18, + "y": 1 + }, + "id": 89, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (peer_name) (peer_pod_status{namespace='$namespace', cluster=~'$instance'})", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{peer_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Peers pod2pod status", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates paas-geo-monitor pod liveness", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 0, + "y": 6 + }, + "id": 86, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "exemplar": false, + "expr": "(max by (pod) (paas_geo_monitor_health{namespace='$namespace', cluster=~'$instance'})) or clamp_max(absent(max by (pod) (paas_geo_monitor_health{namespace='$namespace', cluster=~'$instance'})),0)", + "format": "time_series", + "instant": true, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Paas-geo-monitor Health", + "transformations": [], + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows CPU usage per pod", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "cores", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 6 + }, + "id": 9, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "$$hashKey": "object:638", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(pod) (rate(container_cpu_usage_seconds_total{namespace='$namespace', cluster=~'$instance', pod=~'paas-geo-monitor.*', image!=''}[60s]))", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "CPU: {{pod}}", + "refId": "A" + } + ], + "title": "CPU usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows Memory usage per pod", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 16, + "y": 6 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "$$hashKey": "object:638", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(pod) (container_memory_working_set_bytes{namespace='$namespace', cluster=~'$instance', pod=~'paas-geo-monitor.*', image!=''})", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "Memory: {{pod}}", + "refId": "A" + } + ], + "title": "Memory usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 4, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "from": 0.01, + "result": { + "color": "yellow", + "index": 1, + "text": "WARN" + }, + "to": 0.99 + }, + "type": "range" + }, + { + "options": { + "from": -0.01, + "result": { + "color": "semi-dark-yellow", + "index": 2, + "text": "WARN" + }, + "to": -1 + }, + "type": "range" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 3, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 4, + "x": 0, + "y": 11 + }, + "id": 91, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max (paas_geo_monitor_bgp_peer{namespace='$namespace', cluster=~'$instance', peer_ip=~'$peer_ip', type='NodePeer'}) by(cluster, namespace, peer_ip)", + "format": "time_series", + "instant": true, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{cluster}} {{peer_ip}}", + "refId": "A" + } + ], + "title": "Node BGP Peer Now", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 4, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "from": 0.01, + "result": { + "color": "yellow", + "index": 1, + "text": "WARN" + }, + "to": 0.99 + }, + "type": "range" + }, + { + "options": { + "from": -0.01, + "result": { + "color": "semi-dark-yellow", + "index": 2, + "text": "WARN" + }, + "to": -1 + }, + "type": "range" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 3, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "noValue": "-1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 4, + "x": 4, + "y": 11 + }, + "id": 93, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(max by (cluster, namespace, peer_ip, node) (paas_geo_monitor_bgp_route{cluster=~\"$instance\",namespace='$namespace',destination=\"$service_cidr\"}))", + "format": "time_series", + "instant": true, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "Service Network Availability Now", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates peers dns status", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-orange", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + }, + "-1": { + "color": "dark-red", + "index": 3, + "text": "ERROR" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": -1, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 16, + "x": 8, + "y": 11 + }, + "id": 90, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (cluster, namespace, peer_ip, node) (paas_geo_monitor_bgp_peer{namespace='$namespace', cluster=~'$instance', peer_ip=~'$peer_ip', type='NodePeer'})", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{node}} {{peer_ip}}", + "range": true, + "refId": "A" + } + ], + "title": "Active Node BGP Peers", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-orange", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + }, + "-1": { + "color": "dark-red", + "index": 3, + "text": "ERROR" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": -1, + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 16, + "x": 8, + "y": 16 + }, + "id": 92, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (cluster, namespace, peer_ip, node) (paas_geo_monitor_bgp_route{cluster=~\"$instance\",namespace='$namespace',destination=\"$service_cidr\"})", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{node}}", + "range": true, + "refId": "A" + } + ], + "title": "Service Network Availability", + "transformations": [], + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "default", + "value": "default" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": false, + "text": "30s", + "value": "30s" + }, + "hide": 0, + "label": "Interval", + "name": "inter", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_inter" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "20s", + "value": "20s" + }, + { + "selected": true, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "2m", + "value": "2m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,20s,30s,1m,2m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "current": { + "selected": false, + "text": "site-manager", + "value": "site-manager" + }, + "datasource": { + "uid": "$datasource" + }, + "definition": "label_values(site_manager_requests_total, namespace)", + "hide": 0, + "includeAll": false, + "label": "Namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "query": "label_values(site_manager_requests_total, namespace)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": "", + "current": { + "selected": false, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(cluster)", + "hide": 0, + "includeAll": true, + "label": "Instance", + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(up, cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "label_values(paas_geo_monitor_bgp_peer{type=\"NodePeer\"},peer_ip)", + "hide": 0, + "includeAll": false, + "label": "Peer IP", + "multi": true, + "name": "peer_ip", + "options": [], + "query": { + "query": "label_values(paas_geo_monitor_bgp_peer{type=\"NodePeer\"},peer_ip)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(paas_geo_monitor_bgp_route{source_type=\"BGPPeer\",type=\"FIB\"},destination)", + "hide": 0, + "includeAll": false, + "label": "Service Network", + "multi": false, + "name": "service_cidr", + "options": [], + "query": { + "query": "label_values(paas_geo_monitor_bgp_route{source_type=\"BGPPeer\",type=\"FIB\"},destination)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "__service_cidr_regex_placeholder__", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "browser", + "title": "Paas-Geo-Monitor Monitoring", + "version": 20, + "weekStart": "" +} diff --git a/charts/site-manager/monitoring/site-manager-grafana-dashboard.json b/charts/site-manager/monitoring/site-manager-grafana-dashboard.json new file mode 100644 index 0000000..15658db --- /dev/null +++ b/charts/site-manager/monitoring/site-manager-grafana-dashboard.json @@ -0,0 +1,1712 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 21, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 68, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "refId": "A" + } + ], + "title": "Overview", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Indicates SM pod liveness", + "fieldConfig": { + "defaults": { + "decimals": 1, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 2, + "text": "DOWN" + }, + "1": { + "color": "dark-green", + "index": 0, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null+nan", + "result": { + "color": "dark-red", + "index": 1, + "text": "DOWN" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "noValue": "1", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "dark-orange", + "value": null + }, + { + "color": "yellow", + "value": 3 + }, + { + "color": "green", + "value": 3 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 86, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "9.5.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "exemplar": false, + "expr": "(max by (pod) (kube_pod_status_ready{namespace='$namespace', cluster=~'$instance', pod=~'site-manager.*', condition=\"true\"})) or clamp_max(absent(max by (pod) (kube_pod_status_ready{namespace='$namespace', cluster=~'$instance', pod=~'site-manager.*', condition=\"true\"})),0)", + "format": "time_series", + "instant": true, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{pod}}", + "refId": "A" + } + ], + "title": "SM Health", + "transformations": [], + "type": "stat" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "Shows total HTTP request to SM pod per minute", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 1 + }, + "hiddenSeries": false, + "id": 13, + "legend": { + "avg": true, + "current": false, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:255", + "alias": "HTTP 500", + "color": "#bf1b00" + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:140", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(code, pod) (increase(site_manager_requests_total{namespace='$namespace', cluster=~'$instance', url!='/metrics'}[1m]))", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "HTTP {{code}}: {{pod}} main SM", + "refId": "A" + }, + { + "$$hashKey": "object:140", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(code, pod) (increase(controller_runtime_webhook_requests_total{namespace='$namespace', cluster=~'$instance', url!='/metrics'}[1m]))", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "HTTP {{ code }}: {{pod}} webhook-controller", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Total requests per minute", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows Memory usage per pod", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 8, + "x": 16, + "y": 1 + }, + "hiddenSeries": false, + "id": 8, + "legend": { + "avg": false, + "current": true, + "max": false, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:638", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(pod) (container_memory_working_set_bytes{namespace='$namespace', cluster=~'$instance', pod=~'site-manager.*', image!='', container != ''})", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "Memory: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Memory usage", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Requests to each SM endpoint per second with 200 and 204 status codes", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 8, + "x": 0, + "y": 6 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:214", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "rate(site_manager_request_duration_seconds_count{code=~\"204|200\", namespace='$namespace', cluster=~'$instance'}[60s])", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ url }}: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Requests per second", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows number of bad status codes returned by SM pod", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 6 + }, + "hiddenSeries": false, + "id": 4, + "legend": { + "avg": true, + "current": true, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:1922", + "alias": "errors", + "color": "#c15c17" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:766", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(pod) (rate(site_manager_request_duration_seconds_count{code!~\"204|200\", namespace='$namespace', cluster=~'$instance'}[60s])) OR on() vector(0)", + "format": "time_series", + "instant": false, + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "errors: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Errors per second", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows CPU usage per pod", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 8, + "x": 16, + "y": 6 + }, + "hiddenSeries": false, + "id": 9, + "legend": { + "avg": false, + "current": true, + "max": true, + "min": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:638", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(pod) (rate(container_cpu_usage_seconds_total{namespace='$namespace', cluster=~'$instance', pod=~'site-manager.*', image!='', container != ''}[60s]))", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "CPU: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CPU usage", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows average time which spend to response on GET requests", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 11 + }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:146", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "rate(site_manager_request_duration_seconds_sum{code=~\"204|200\", method=\"GET\", namespace='$namespace', cluster=~'$instance'}[60s])\n/\nclamp_min(rate(site_manager_request_duration_seconds_count{code=~\"204|200\", method=\"GET\", namespace='$namespace', cluster=~'$instance'}[60s]), 1)", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ url }}: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Average response time GET [60s]", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows average time which spend to response on POST requests", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 11 + }, + "hiddenSeries": false, + "id": 92, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:146", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "rate(site_manager_request_duration_seconds_sum{code=~\"204|200\", method=\"POST\", namespace='$namespace', cluster=~'$instance'}[60s])\n/\nclamp_min(rate(site_manager_request_duration_seconds_count{code=~\"204|200\", method=\"POST\", namespace='$namespace', cluster=~'$instance'}[60s]), 1)", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ url }}: {{pod}}", + "range": true, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Average response time POST [60s]", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Shows average time which spend to response on webhook requests", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 12, + "w": 8, + "x": 0, + "y": 16 + }, + "hiddenSeries": false, + "id": 93, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:146", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "rate(controller_runtime_webhook_latency_seconds_sum{namespace='$namespace', cluster=~'$instance'}[60s])\n/\nclamp_min(rate(controller_runtime_webhook_latency_seconds_count{namespace='$namespace', cluster=~'$instance'}[60s]), 1)", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ webhook }}: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Average response time webhook endpoints", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Requests to each webhook endpoint per second", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 12, + "w": 8, + "x": 8, + "y": 16 + }, + "hiddenSeries": false, + "id": 94, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:214", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "rate(controller_runtime_webhook_latency_seconds_count{namespace='$namespace', cluster=~'$instance'}[60s])", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ webhook }}: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Webhook requests per second", + "type": "timeseries" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "Reconciliation results per second", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 12, + "w": 8, + "x": 16, + "y": 16 + }, + "hiddenSeries": false, + "id": 95, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.5.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "$$hashKey": "object:214", + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "exemplar": true, + "expr": "sum by(result, pod) (rate(controller_runtime_reconcile_total{namespace='$namespace', cluster=~'$instance'}[60s]))", + "format": "time_series", + "interval": "$inter", + "intervalFactor": 1, + "legendFormat": "{{ result }}: {{pod}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "SM reconcile Rate", + "type": "timeseries" + } + ], + "refresh": false, + "schemaVersion": 34, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "default", + "value": "default" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": false, + "text": "30s", + "value": "30s" + }, + "hide": 0, + "label": "Interval", + "name": "inter", + "options": [ + { + "selected": false, + "text": "auto", + "value": "$__auto_interval_inter" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "20s", + "value": "20s" + }, + { + "selected": true, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "2m", + "value": "2m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "10s,20s,30s,1m,2m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "current": { + "selected": false, + "text": "site-manager", + "value": "site-manager" + }, + "datasource": { + "uid": "$datasource" + }, + "definition": "label_values(site_manager_requests_total, namespace)", + "hide": 0, + "includeAll": false, + "label": "Namespace", + "multi": false, + "name": "namespace", + "options": [], + "query": { + "query": "label_values(site_manager_requests_total, namespace)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": "", + "current": { + "selected": true, + "text": [ + "left" + ], + "value": [ + "left" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(cluster)", + "hide": 0, + "includeAll": true, + "label": "Instance", + "multi": true, + "name": "instance", + "options": [], + "query": { + "query": "label_values(up, cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "browser", + "title": "SM Monitoring", + "version": 8, + "weekStart": "" +} diff --git a/charts/site-manager/resource-profiles/dev.yaml b/charts/site-manager/resource-profiles/dev.yaml new file mode 100644 index 0000000..04222dd --- /dev/null +++ b/charts/site-manager/resource-profiles/dev.yaml @@ -0,0 +1 @@ +profile: "small" diff --git a/charts/site-manager/resource-profiles/large.yaml b/charts/site-manager/resource-profiles/large.yaml new file mode 100644 index 0000000..29e2a8a --- /dev/null +++ b/charts/site-manager/resource-profiles/large.yaml @@ -0,0 +1 @@ +profile: "large" diff --git a/charts/site-manager/resource-profiles/medium.yaml b/charts/site-manager/resource-profiles/medium.yaml new file mode 100644 index 0000000..3ae225c --- /dev/null +++ b/charts/site-manager/resource-profiles/medium.yaml @@ -0,0 +1 @@ +profile: "medium" diff --git a/charts/site-manager/resource-profiles/prod.yaml b/charts/site-manager/resource-profiles/prod.yaml new file mode 100644 index 0000000..29e2a8a --- /dev/null +++ b/charts/site-manager/resource-profiles/prod.yaml @@ -0,0 +1 @@ +profile: "large" diff --git a/charts/site-manager/resource-profiles/small.yaml b/charts/site-manager/resource-profiles/small.yaml new file mode 100644 index 0000000..04222dd --- /dev/null +++ b/charts/site-manager/resource-profiles/small.yaml @@ -0,0 +1 @@ +profile: "small" diff --git a/charts/site-manager/templates/grafana-dashboard.yaml b/charts/site-manager/templates/grafana-dashboard.yaml new file mode 100644 index 0000000..bb3e05c --- /dev/null +++ b/charts/site-manager/templates/grafana-dashboard.yaml @@ -0,0 +1,25 @@ +{{- if .Values.MONITORING_ENABLED }} +apiVersion: integreatly.org/v1alpha1 +kind: GrafanaDashboard +metadata: + name: site-manager-grafana-dashboard + labels: + app: grafana +spec: + name: dashboard-with-plugins.json + json: > +{{ .Files.Get "monitoring/site-manager-grafana-dashboard.json" | indent 4 }} +{{- if and (.Values.paasGeoMonitor.install) }} +--- +apiVersion: integreatly.org/v1alpha1 +kind: GrafanaDashboard +metadata: + name: paas-geo-monitor-grafana-dashboard + labels: + app: grafana +spec: + name: dashboard-with-plugins.json + json: > +{{ .Files.Get "monitoring/paas-geo-monitor-grafana-dashboard.json" | replace "__service_cidr_regex_placeholder__" .Values.paasGeoMonitor.monitoring.serviceCIDRRegex | indent 4 }} +{{ end }} +{{ end }} diff --git a/charts/site-manager/templates/paas-geo-monitor-service-monitor.yaml b/charts/site-manager/templates/paas-geo-monitor-service-monitor.yaml new file mode 100644 index 0000000..8e65b5f --- /dev/null +++ b/charts/site-manager/templates/paas-geo-monitor-service-monitor.yaml @@ -0,0 +1,29 @@ +{{- if and (.Values.MONITORING_ENABLED) (.Values.paasGeoMonitor.install) }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: paas-geo-monitor-service-monitor + labels: + app.kubernetes.io/component: monitoring + app.kubernetes.io/name: paas-geo-monitor-service-monitor + app.kubernetes.io/part-of: platform-monitoring + k8s-app: paas-geo-monitor-service-monitor +spec: + endpoints: + - interval: 30s + path: /metrics + port: web + scheme: http + jobLabel: k8s-app + namespaceSelector: + {{ if .Release.Namespace }} + matchNames: + - {{ .Release.Namespace }} + {{ else }} + matchNames: + - {{ default "paas-geo-monitor" .Values.namespace }} + {{ end }} + selector: + matchLabels: + app: paas-geo-monitor +{{ end }} diff --git a/charts/site-manager/templates/service-monitor.yaml b/charts/site-manager/templates/service-monitor.yaml new file mode 100644 index 0000000..a7f93e7 --- /dev/null +++ b/charts/site-manager/templates/service-monitor.yaml @@ -0,0 +1,29 @@ +{{- if .Values.MONITORING_ENABLED }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: site-manager-service-monitor + labels: + app.kubernetes.io/component: monitoring + app.kubernetes.io/name: site-manager-service-monitor + app.kubernetes.io/part-of: platform-monitoring + k8s-app: site-manager-service-monitor +spec: + endpoints: + - interval: 30s + path: /metrics + port: metrics + scheme: http + jobLabel: k8s-app + namespaceSelector: + {{ if .Release.Namespace }} + matchNames: + - {{ .Release.Namespace }} + {{ else }} + matchNames: + - {{ default "site-manager" .Release.Namespace }} + {{ end }} + selector: + matchLabels: + app: site-manager +{{ end }} diff --git a/charts/site-manager/values.yaml b/charts/site-manager/values.yaml index 5ff453f..e448505 100644 --- a/charts/site-manager/values.yaml +++ b/charts/site-manager/values.yaml @@ -1,5 +1,6 @@ createClusterAdminEntities: true priorityClassName: "" +profile: small env: # set authentication mode @@ -46,6 +47,8 @@ serviceAccount: smSecureAuth: false customAudience: sm-services +MONITORING_ENABLED: false + image: repository: ghcr.io/netcracker/site-manager pullPolicy: Always @@ -104,6 +107,7 @@ tls: additionalIpAddresses: [] PAAS_PLATFORM: KUBERNETES +DBAAS_ENABLED: false CLOUD_PUBLIC_HOST: "example.com" crd: @@ -112,6 +116,10 @@ crd: paasGeoMonitor: image: ghcr.io/netcracker/paas-geo-monitor:main install: false + monitoring: + # This field configures service CIDR regex used on monitoring dashboard. + # If you use a different service subnet (not starting with 172.), you need to specify regex appropriately. + serviceCIDRRegex: 172.* env: PAAS_PING_PEERS: "true" PAAS_PING_TIME: "5" From d5d2936e345fe7e5e738c544470d47b6b00c1727 Mon Sep 17 00:00:00 2001 From: Pranav Patil Date: Tue, 5 May 2026 16:49:26 +0500 Subject: [PATCH 2/2] dockerimage for charts transfer --- .github/workflows/publish.yaml | 3 +++ ci/docker-charts/Dockerfile | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 ci/docker-charts/Dockerfile diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0840978..9f4164d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,6 +30,9 @@ jobs: - name: sm-check dir: sm-check file: sm-check/Dockerfile + - name: sm-charts-transfer + dir: . + file: ci/docker-charts/Dockerfile steps: - name: Checkout uses: actions/checkout@v4 diff --git a/ci/docker-charts/Dockerfile b/ci/docker-charts/Dockerfile new file mode 100644 index 0000000..15c18a2 --- /dev/null +++ b/ci/docker-charts/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch + +# Transfer +COPY charts /charts