"tableColumn": "",
"targets": [
{
- "expr": "sum(kube_pod_info) / sum(kube_node_status_allocatable_pods)",
+ "expr": "sum(kube_pod_info) / sum(kube_node_status_allocatable{resource=\"pods\"})",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
"tableColumn": "",
"targets": [
{
- "expr": "sum(kube_pod_container_resource_requests_cpu_cores) / sum(kube_node_status_allocatable_cpu_cores)",
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"cpu\",unit=\"core\"}) / sum(kube_node_status_allocatable{resource=\"cpu\",unit=\"core\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"tableColumn": "",
"targets": [
{
- "expr": "sum(kube_pod_container_resource_requests_memory_bytes) / sum(kube_node_status_allocatable_memory_bytes)",
+ "expr": "sum(kube_pod_container_resource_requests{resource=\"memory\",unit=\"byte\"}) / sum(kube_node_status_allocatable{resource=\"memory\",unit=\"byte\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 1,
"tableColumn": "",
"targets": [
{
- "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongo\"}",
+ "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongodb-k8s\"}",
"format": "time_series",
"refId": "A"
}
],
"valueName": "current"
},
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": false,
- "colors": [
- "#d44a3a",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": "Prometheus",
- "format": "none",
- "gauge": {
- "maxValue": 1,
- "minValue": 0,
- "show": true,
- "thresholdLabels": false,
- "thresholdMarkers": false
- },
- "gridPos": {
- "h": 4,
- "w": 3,
- "x": 4,
- "y": 14
- },
- "id": 79,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "nullPointMode": "connected",
- "nullText": null,
- "options": {},
- "pluginVersion": "6.3.5",
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false,
- "ymax": null,
- "ymin": null
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "kube_deployment_status_replicas_available{deployment=\"light-ui\"}",
- "instant": true,
- "refId": "A"
- }
- ],
- "thresholds": "0,1",
- "timeFrom": null,
- "timeShift": null,
- "title": "light-ui",
- "type": "singlestat",
- "valueFontSize": "100%",
- "valueMaps": [
- {
- "op": "=",
- "text": "0",
- "value": "null"
- }
- ],
- "valueName": "avg"
- },
{
"cacheTimeout": null,
"colorBackground": false,
"steppedLine": false,
"targets": [
{
- "expr": "sum(namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"osm\"}) by (pod)",
+ "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"osm\"}) by (pod)",
"instant": false,
"intervalFactor": 4,
"legendFormat": "{{pod}}",