grafana/public/app/plugins/datasource/cloud-monitoring/dashboards/gke-prometheus-pod-node-mon...

803 lines
21 KiB
JSON

{
"__inputs": [],
"__requires": [
{ "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.3.0-pre" },
{ "type": "panel", "id": "graph", "name": "Graph", "version": "" },
{ "type": "datasource", "id": "stackdriver", "name": "Google Cloud Monitoring", "version": "1.0.0" }
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"description": "",
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 0
},
"id": 7,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "This dashboard has example charts for metrics exported by Prometheus, for example metrics from [Kubernetes Pods](https://github.com/kubernetes/kube-state-metrics/blob/master/docs/pod-metrics.md) and [Kubernetes Nodes](https://github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/cluster/node-metrics.md).\n\nNote that if you are using the deprecated [Stackdriver Prometheus sidecar](https://cloud.google.com/monitoring/api/metrics_other#prometheus) then this dashboard will not function as expected. This dashboard requires metrics to be collected by Google Managed Prometheus as they will then be exposed under the `prometheus.googleapis.com` metrics descriptor.\n\nIf you are using a GKE cluster that has been configured to automatically scrape Kube state metrics then some of the panels on this dashboard will not show data as the default configuration only sends a [subset](https://cloud.google.com/kubernetes-engine/docs/how-to/kube-state-metrics) of the available Kube state metrics.\n\nTo retrieve all available Kube state metrics [this](https://cloud.google.com/stackdriver/docs/managed-prometheus/exporters/kube_state_metrics#install-exporter) documentation can be followed.",
"mode": "markdown"
},
"pluginVersion": "11.2.0-pre",
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"refId": "A"
}
],
"title": "GKE Prometheus Pod/Node Monitoring Test",
"type": "text"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 3
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{metric.label.phase}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"crossSeriesReducer": "REDUCE_SUM",
"filters": ["metric.type", "=", "prometheus.googleapis.com/kube_pod_status_phase/gauge"],
"groupBys": ["metric.label.phase"],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_pod_status_phase [SUM]",
"type": "timeseries"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 3
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{resource.label.namespace}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"crossSeriesReducer": "REDUCE_SUM",
"filters": ["metric.type", "=", "prometheus.googleapis.com/kube_pod_container_status_ready/gauge"],
"groupBys": ["resource.label.namespace"],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_pod_status_ready [SUM]",
"type": "timeseries"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 11
},
"id": 3,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{resource.label.namespace}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"crossSeriesReducer": "REDUCE_SUM",
"filters": ["metric.type", "=", "prometheus.googleapis.com/kube_pod_container_status_running/gauge"],
"groupBys": ["resource.label.namespace"],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_pod_container_status_running [SUM]",
"type": "timeseries"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 11
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{metric.label.condition}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"crossSeriesReducer": "REDUCE_SUM",
"filters": ["metric.type", "=", "prometheus.googleapis.com/kube_node_status_condition/gauge"],
"groupBys": ["metric.label.condition"],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_node_status_condition [SUM]",
"type": "timeseries"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 19
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{metric.label.node}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"crossSeriesReducer": "REDUCE_NONE",
"filters": [
"metric.label.unit",
"=",
"integer",
"AND",
"metric.type",
"=",
"prometheus.googleapis.com/kube_node_status_capacity/gauge"
],
"groupBys": [],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_node_status_capacity_pods",
"type": "timeseries"
},
{
"datasource": {
"type": "stackdriver",
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 19
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"width": 220
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "7.4.0-pre",
"targets": [
{
"aliasBy": "{{metric.label.node}}",
"datasource": {
"uid": "$datasource"
},
"queryType": "timeSeriesList",
"refId": "A",
"timeSeriesList": {
"alignmentPeriod": "$alignmentPeriod",
"filters": [
"metric.label.unit",
"=",
"integer",
"AND",
"metric.type",
"=",
"prometheus.googleapis.com/kube_node_status_allocatable/gauge"
],
"groupBys": [],
"perSeriesAligner": "ALIGN_MEAN",
"projectName": "$project"
}
}
],
"title": "kube_node_status_allocatable_pods",
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 39,
"tags": ["Compute", "Cloud Monitoring", "GCP"],
"templating": {
"list": [
{
"current": {},
"hide": 0,
"includeAll": false,
"label": "Datasource",
"multi": false,
"name": "datasource",
"options": [],
"query": "stackdriver",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {},
"datasource": {
"uid": "$datasource"
},
"definition": "Google Cloud Monitoring - Projects",
"hide": 0,
"includeAll": false,
"label": "Project",
"multi": false,
"name": "project",
"options": [],
"query": {
"labelKey": "",
"loading": false,
"projectName": "$project",
"projects": [],
"selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users",
"selectedQueryType": "projects",
"selectedSLOService": "",
"selectedService": "actions.googleapis.com",
"sloServices": []
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "grafana auto",
"value": "grafana-auto"
},
"datasource": {
"uid": "${datasource}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Alignment Period",
"multi": false,
"name": "alignmentPeriod",
"options": [],
"query": {
"labelKey": "",
"loading": false,
"projectName": "$project",
"projects": [
{
"name": "project-1",
"value": "project-1"
},
{
"name": "project-2",
"value": "project-2"
}
],
"refId": "CloudMonitoringVariableQueryEditor-VariableQuery",
"selectedMetricType": "actions.googleapis.com/smarthome_action/num_active_users",
"selectedQueryType": "alignmentPeriods",
"selectedSLOService": "",
"selectedService": "actions.googleapis.com",
"sloServices": []
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": { "from": "now-24h", "to": "now" },
"timepicker": {},
"timezone": "",
"title": "GKE Prometheus Pod/Node Monitoring",
"uid": "",
"version": 5,
"weekStart": ""
}