Skip to content

Instantly share code, notes, and snippets.

@yuuki
Created August 2, 2022 09:34
Show Gist options
  • Save yuuki/bbeb1a783113be58136ca4e67ec0d701 to your computer and use it in GitHub Desktop.
Save yuuki/bbeb1a783113be58136ca4e67ec0d701 to your computer and use it in GitHub Desktop.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"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"
}
]
},
"description": "",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"iteration": 1659432824969,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 10,
"panels": [],
"title": "SLI Metrics",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 1
},
"id": 16,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "rate(requests{app=\"owlk8s\",ns=\"train_ticket\",svc=\"ts_ui_dashboard\"}[1m])",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "SLI (Requests Rate (/s))",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 1
},
"id": 12,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "duration{app=\"owlk8s\",ns=\"train_ticket\",svc=\"ts_ui_dashboard\"}",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "SLI (Duration in ts-ui-dashboard)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 1
},
"id": 42,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (quantile)(nginx_http_response_time_seconds{app_kubernetes_io_name=\"ts-ui-dashboard\", quantile=\"0.9\",status=~\"2..\"})",
"legendFormat": "{{quantile}} %tile",
"range": true,
"refId": "90%tile"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (quantile)(nginx_http_response_time_seconds{app_kubernetes_io_name=\"ts-ui-dashboard\", quantile=\"0.5\",status=~\"2..\"})",
"hide": false,
"legendFormat": "{{quantile}} %tile",
"range": true,
"refId": "50%tile"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (quantile)(nginx_http_response_time_seconds{app_kubernetes_io_name=\"ts-ui-dashboard\", quantile=\"0.99\",status=~\"2..\"})",
"hide": false,
"legendFormat": "{{quantile}} %tile",
"range": true,
"refId": "98%tile"
}
],
"title": "ts-ui-dashboard response time",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"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
}
]
},
"unit": "reqps"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"/api/v1/adminuserservice/users",
"/api/v1/assuranceservice/assurances/types",
"/api/v1/cancelservice/cancel",
"/api/v1/consignservice/consigns",
"/api/v1/contactservice/contacts",
"/api/v1/executeservice/execute/collected",
"/api/v1/executeservice/execute/execute",
"/api/v1/foodservice",
"/api/v1/inside_pay_service/inside_payment",
"/api/v1/orderservice/order/refresh",
"/api/v1/preserveservice/preserve",
"/api/v1/travelservice",
"/api/v1/users/login",
"/getVoucher"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
},
"id": 18,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (request_path) ((rate(nginx_http_response_count_total[1m])))",
"legendFormat": "{{request_path}}",
"range": true,
"refId": "A"
}
],
"title": "Requests throughput",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Response time",
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
},
"id": 44,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (request_path) (rate(nginx_http_response_time_seconds{quantile=\"0.5\",status=~\"2..\"}[1m]))",
"legendFormat": "50%tile: {{request_path}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (request_path) (rate(nginx_http_response_time_seconds{quantile=\"0.9\",status=~\"2..\"}[1m]))",
"hide": false,
"legendFormat": "90%tile: {{request_path}}",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "",
"hide": false,
"legendFormat": "99%tile: {{request_path}}",
"range": true,
"refId": "C"
}
],
"title": "Response time by request path",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 17
},
"id": 2,
"panels": [],
"title": "The RED metrics for each service",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 14,
"x": 0,
"y": 18
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "rate(requests{ns=\"train_ticket\",app=\"owlk8s\"}[5m])",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "Rate",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 10,
"x": 14,
"y": 18
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "rate(err5{app=\"owlk8s\",ns=\"train_ticket\"}[1m])",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "Errors (5xx)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 14,
"x": 0,
"y": 26
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "duration{ns=\"train_ticket\",app=\"owlk8s\",svc!=\"ts_ui_dashboard\"} / 1000",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "Request duration",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 10,
"x": 14,
"y": 26
},
"id": 14,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "rate(err4{app=\"owlk8s\",ns=\"train_ticket\"}[1m])",
"legendFormat": "{{svc}}",
"range": true,
"refId": "A"
}
],
"title": "Errors (4xx)",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 34
},
"id": 30,
"panels": [],
"title": "Container metrics",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Cores",
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 35
},
"id": 32,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "rate(container_cpu_usage_seconds_total{container=~\"$container\",image!=\"\",namespace=\"train-ticket\"}[1m])",
"legendFormat": "{{container}}",
"range": true,
"refId": "A"
}
],
"title": "Container CPU",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 35
},
"id": 34,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "container_memory_working_set_bytes{container=~\"$container\",namespace=\"train-ticket\",image!=\"\"}",
"legendFormat": "{{container}}",
"range": true,
"refId": "A"
}
],
"title": "Container memory size",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 43
},
"id": 26,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (app_kubernetes_io_name) (java_lang_Memory_HeapMemoryUsage_used)",
"legendFormat": "{{label_name}}",
"range": true,
"refId": "A"
}
],
"title": "JVM memory used",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 43
},
"id": 24,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum(mongodb_dbstats_dataSize) by (app_kubernetes_io_name)",
"legendFormat": "{{label_name}}",
"range": true,
"refId": "A"
}
],
"title": "Mongodb datasize",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ops"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 51
},
"id": 20,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum(rate(mongodb_ss_opcounters[1m])) by (app_kubernetes_io_name)",
"legendFormat": "{{app}}",
"range": true,
"refId": "A"
}
],
"title": "MongoDB Query Operations",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 59
},
"id": 40,
"panels": [],
"title": "Node Metrics",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 60
},
"id": 36,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "sum by (node)(rate(node_cpu_seconds_total{mode=~\"user|system|iowait|.*irq\",k8s_app=\"node-exporter\", kubernetes_namespace=\"monitoring\"}[1m])) * 100",
"legendFormat": "{{label_name}}",
"range": true,
"refId": "A"
}
],
"title": "Node CPU Usage",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 60
},
"id": 38,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"editorMode": "code",
"expr": "(node_memory_MemTotal_bytes{k8s_app=\"node-exporter\"} - node_memory_MemFree_bytes{k8s_app=\"node-exporter\"} - (node_memory_Cached_bytes{k8s_app=\"node-exporter\"} + node_memory_Buffers_bytes{k8s_app=\"node-exporter\"})) / node_memory_MemTotal_bytes{k8s_app=\"node-exporter\"} * 100",
"legendFormat": "{{node}}",
"range": true,
"refId": "A"
}
],
"title": "Node Memory Usage",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 36,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": [
"ts-admin-basic-info-service",
"ts-admin-order-service",
"ts-admin-route-service",
"ts-admin-travel-service",
"ts-admin-user-service",
"ts-assurance-mongo",
"ts-assurance-service",
"ts-auth-mongo",
"ts-auth-service",
"ts-basic-service",
"ts-cancel-service",
"ts-config-mongo",
"ts-config-service",
"ts-consign-mongo",
"ts-consign-price-mongo",
"ts-consign-price-service",
"ts-consign-service",
"ts-contacts-mongo",
"ts-contacts-service",
"ts-execute-service",
"ts-food-map-mongo",
"ts-food-map-service",
"ts-food-mongo",
"ts-food-service",
"ts-inside-payment-mongo",
"ts-inside-payment-service",
"ts-news-service",
"ts-notification-service",
"ts-order-mongo",
"ts-order-other-mongo",
"ts-order-other-service",
"ts-order-service",
"ts-payment-mongo",
"ts-payment-service",
"ts-preserve-other-service",
"ts-preserve-service",
"ts-price-mongo",
"ts-price-service",
"ts-rebook-service",
"ts-route-mongo",
"ts-route-plan-service",
"ts-route-service",
"ts-seat-service",
"ts-security-mongo",
"ts-security-service",
"ts-station-mongo",
"ts-station-service",
"ts-ticket-office-mongo",
"ts-ticket-office-service",
"ts-ticketinfo-service",
"ts-train-mongo",
"ts-train-service",
"ts-travel-mongo",
"ts-travel-plan-service",
"ts-travel-service",
"ts-travel2-mongo",
"ts-travel2-service",
"ts-ui-dashboard",
"ts-user-mongo",
"ts-user-service",
"ts-verification-code-service",
"ts-voucher-mysql",
"ts-voucher-service"
],
"value": [
"ts-admin-basic-info-service",
"ts-admin-order-service",
"ts-admin-route-service",
"ts-admin-travel-service",
"ts-admin-user-service",
"ts-assurance-mongo",
"ts-assurance-service",
"ts-auth-mongo",
"ts-auth-service",
"ts-basic-service",
"ts-cancel-service",
"ts-config-mongo",
"ts-config-service",
"ts-consign-mongo",
"ts-consign-price-mongo",
"ts-consign-price-service",
"ts-consign-service",
"ts-contacts-mongo",
"ts-contacts-service",
"ts-execute-service",
"ts-food-map-mongo",
"ts-food-map-service",
"ts-food-mongo",
"ts-food-service",
"ts-inside-payment-mongo",
"ts-inside-payment-service",
"ts-news-service",
"ts-notification-service",
"ts-order-mongo",
"ts-order-other-mongo",
"ts-order-other-service",
"ts-order-service",
"ts-payment-mongo",
"ts-payment-service",
"ts-preserve-other-service",
"ts-preserve-service",
"ts-price-mongo",
"ts-price-service",
"ts-rebook-service",
"ts-route-mongo",
"ts-route-plan-service",
"ts-route-service",
"ts-seat-service",
"ts-security-mongo",
"ts-security-service",
"ts-station-mongo",
"ts-station-service",
"ts-ticket-office-mongo",
"ts-ticket-office-service",
"ts-ticketinfo-service",
"ts-train-mongo",
"ts-train-service",
"ts-travel-mongo",
"ts-travel-plan-service",
"ts-travel-service",
"ts-travel2-mongo",
"ts-travel2-service",
"ts-ui-dashboard",
"ts-user-mongo",
"ts-user-service",
"ts-verification-code-service",
"ts-voucher-mysql",
"ts-voucher-service"
]
},
"datasource": {
"type": "prometheus",
"uid": "MUFBqTrnk"
},
"definition": "label_values(container)",
"hide": 0,
"includeAll": false,
"label": "container",
"multi": true,
"name": "container",
"options": [],
"query": {
"query": "label_values(container)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "^ts-.+",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"15s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Train Ticket Performance Dashboard",
"uid": "jFWV-Trnz",
"version": 56,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment