206 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			206 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "title": "Zastava Runtime Plane",
 | 
						|
  "uid": "zastava-runtime",
 | 
						|
  "timezone": "utc",
 | 
						|
  "schemaVersion": 38,
 | 
						|
  "version": 1,
 | 
						|
  "refresh": "30s",
 | 
						|
  "time": {
 | 
						|
    "from": "now-6h",
 | 
						|
    "to": "now"
 | 
						|
  },
 | 
						|
  "panels": [
 | 
						|
    {
 | 
						|
      "id": 1,
 | 
						|
      "type": "timeseries",
 | 
						|
      "title": "Observer Event Rate",
 | 
						|
      "datasource": {
 | 
						|
        "type": "prometheus",
 | 
						|
        "uid": "${datasource}"
 | 
						|
      },
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "sum by (tenant,component,kind) (rate(zastava_runtime_events_total{tenant=~\"$tenant\"}[5m]))",
 | 
						|
          "legendFormat": "{{tenant}}/{{component}}/{{kind}}"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "gridPos": {
 | 
						|
        "h": 8,
 | 
						|
        "w": 12,
 | 
						|
        "x": 0,
 | 
						|
        "y": 0
 | 
						|
      },
 | 
						|
      "fieldConfig": {
 | 
						|
        "defaults": {
 | 
						|
          "unit": "1/s",
 | 
						|
          "thresholds": {
 | 
						|
            "mode": "absolute",
 | 
						|
            "steps": [
 | 
						|
              {
 | 
						|
                "color": "green"
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "overrides": []
 | 
						|
      },
 | 
						|
      "options": {
 | 
						|
        "legend": {
 | 
						|
          "showLegend": true,
 | 
						|
          "placement": "bottom"
 | 
						|
        },
 | 
						|
        "tooltip": {
 | 
						|
          "mode": "multi"
 | 
						|
        }
 | 
						|
      }
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "id": 2,
 | 
						|
      "type": "timeseries",
 | 
						|
      "title": "Admission Decisions",
 | 
						|
      "datasource": {
 | 
						|
        "type": "prometheus",
 | 
						|
        "uid": "${datasource}"
 | 
						|
      },
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "sum by (decision) (rate(zastava_admission_decisions_total{tenant=~\"$tenant\"}[5m]))",
 | 
						|
          "legendFormat": "{{decision}}"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "gridPos": {
 | 
						|
        "h": 8,
 | 
						|
        "w": 12,
 | 
						|
        "x": 12,
 | 
						|
        "y": 0
 | 
						|
      },
 | 
						|
      "fieldConfig": {
 | 
						|
        "defaults": {
 | 
						|
          "unit": "1/s",
 | 
						|
          "thresholds": {
 | 
						|
            "mode": "absolute",
 | 
						|
            "steps": [
 | 
						|
              {
 | 
						|
                "color": "green"
 | 
						|
              },
 | 
						|
              {
 | 
						|
                "color": "red",
 | 
						|
                "value": 20
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "overrides": []
 | 
						|
      },
 | 
						|
      "options": {
 | 
						|
        "legend": {
 | 
						|
          "showLegend": true,
 | 
						|
          "placement": "bottom"
 | 
						|
        },
 | 
						|
        "tooltip": {
 | 
						|
          "mode": "multi"
 | 
						|
        }
 | 
						|
      }
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "id": 3,
 | 
						|
      "type": "timeseries",
 | 
						|
      "title": "Backend Latency P95",
 | 
						|
      "datasource": {
 | 
						|
        "type": "prometheus",
 | 
						|
        "uid": "${datasource}"
 | 
						|
      },
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "histogram_quantile(0.95, sum by (le) (rate(zastava_runtime_backend_latency_ms_bucket{tenant=~\"$tenant\"}[5m])))",
 | 
						|
          "legendFormat": "p95 latency"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "gridPos": {
 | 
						|
        "h": 8,
 | 
						|
        "w": 12,
 | 
						|
        "x": 0,
 | 
						|
        "y": 8
 | 
						|
      },
 | 
						|
      "fieldConfig": {
 | 
						|
        "defaults": {
 | 
						|
          "unit": "ms",
 | 
						|
          "thresholds": {
 | 
						|
            "mode": "absolute",
 | 
						|
            "steps": [
 | 
						|
              {
 | 
						|
                "color": "green"
 | 
						|
              },
 | 
						|
              {
 | 
						|
                "color": "orange",
 | 
						|
                "value": 500
 | 
						|
              },
 | 
						|
              {
 | 
						|
                "color": "red",
 | 
						|
                "value": 750
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "overrides": []
 | 
						|
      },
 | 
						|
      "options": {
 | 
						|
        "legend": {
 | 
						|
          "showLegend": true,
 | 
						|
          "placement": "bottom"
 | 
						|
        },
 | 
						|
        "tooltip": {
 | 
						|
          "mode": "multi"
 | 
						|
        }
 | 
						|
      }
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "templating": {
 | 
						|
    "list": [
 | 
						|
      {
 | 
						|
        "name": "datasource",
 | 
						|
        "type": "datasource",
 | 
						|
        "query": "prometheus",
 | 
						|
        "label": "Prometheus",
 | 
						|
        "current": {
 | 
						|
          "text": "Prometheus",
 | 
						|
          "value": "Prometheus"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "name": "tenant",
 | 
						|
        "type": "query",
 | 
						|
        "datasource": {
 | 
						|
          "type": "prometheus",
 | 
						|
          "uid": "${datasource}"
 | 
						|
        },
 | 
						|
        "definition": "label_values(zastava_runtime_events_total, tenant)",
 | 
						|
        "refresh": 1,
 | 
						|
        "hide": 0,
 | 
						|
        "current": {
 | 
						|
          "text": ".*",
 | 
						|
          "value": ".*"
 | 
						|
        },
 | 
						|
        "regex": "",
 | 
						|
        "includeAll": true,
 | 
						|
        "multi": true,
 | 
						|
        "sort": 1
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "annotations": {
 | 
						|
    "list": [
 | 
						|
      {
 | 
						|
        "name": "Deployments",
 | 
						|
        "type": "tags",
 | 
						|
        "datasource": {
 | 
						|
          "type": "prometheus",
 | 
						|
          "uid": "${datasource}"
 | 
						|
        },
 | 
						|
        "enable": true,
 | 
						|
        "iconColor": "rgba(255, 96, 96, 1)"
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  }
 | 
						|
}
 |