1
0
mirror of https://github.com/git22ura/is2023.git synced 2025-09-30 21:26:04 +02:00
Files
git22ura_is2023/дашборд.json
2023-10-04 11:22:19 +03:00

820 lines
21 KiB
JSON

{
"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": 103,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 0,
"spanNulls": false
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 1,
"text": "stopped (and other)"
},
"1": {
"color": "green",
"index": 0,
"text": "running"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 0
},
"id": 8,
"options": {
"alignValue": "left",
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"mergeValues": true,
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"repeat": "server",
"repeatDirection": "h",
"targets": [
{
"$$hashKey": "object:123",
"aggregation": "Last",
"datasource": {
"type": "prometheus",
"uid": "E9TOD4HMz"
},
"decimals": 2,
"displayAliasType": "Warning / Critical",
"displayType": "Regular",
"displayValueWithAlias": "Never",
"exemplar": true,
"expr": "min_over_time(windows_service_state{name=~\"1c.*\", state=\"running\", instance=\"$server\"}[1m])",
"group": {
"$$hashKey": "object:73",
"alias": "1",
"name": "Status Checks",
"url": ""
},
"interval": "",
"legendFormat": "{{name}}",
"refId": "A",
"units": "none",
"valueHandler": "Number Threshold"
}
],
"type": "state-timeline"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "unit",
"value": "percent"
},
{
"id": "custom.drawStyle",
"value": "line"
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
10,
10
],
"fill": "dash"
}
},
{
"id": "custom.gradientMode",
"value": "none"
},
{
"id": "custom.fillOpacity",
"value": 0
},
{
"id": "color",
"value": {
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 27
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.3.4",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"exemplar": true,
"expr": "windows_process_working_set_private_bytes{instance=\"$server\",process=~\"(rmngr|rphost).*\"}",
"instant": false,
"interval": "",
"legendFormat": "{{process}} ({{process_id}})",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"exemplar": true,
"expr": "windows_memory_available_bytes{instance=\"$server\"}/windows_cs_physical_memory_bytes{instance=\"$server\"}*100",
"hide": false,
"interval": "",
"legendFormat": "% free memory",
"range": true,
"refId": "B"
}
],
"title": "Memory (private working set)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"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": "line+area"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "F"
},
"properties": [
{
"id": "displayName",
"value": "Превышение очереди процессоров"
},
{
"id": "custom.lineWidth",
"value": 2
},
{
"id": "color",
"value": {
"fixedColor": "dark-blue",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 27
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"exemplar": true,
"expr": "100 - (avg by (instance) (irate(windows_cpu_time_total{mode=\"idle\", instance=~\"$server\"}[1m])) * 100)",
"hide": false,
"interval": "",
"legendFormat": "{{instance}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"exemplar": true,
"expr": "100 * sum by(instance, process, process_id) (rate(windows_process_cpu_time_total{instance=~\"$server\", process!=\"Idle\"}[1m]))\r\n / on(instance) group_left sum by(instance) (rate(windows_cpu_time_total{instance=~\"$server\"}[1m]))",
"hide": false,
"interval": "",
"legendFormat": "{{process}} {{process_id}}",
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"exemplar": true,
"expr": "100 - (avg by (process_id) (irate(windows_process_cpu_time_total{mode=\"user\", instance=~\"$server\"}[1m])) * 100)",
"hide": true,
"interval": "",
"legendFormat": "",
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"expr": "windows_system_processor_queue_length{instance=~\"$server\"} * 2 - windows_cs_logical_processors{instance=\"$server\"}",
"hide": true,
"legendFormat": "__auto",
"range": true,
"refId": "D"
},
{
"datasource": {
"name": "Expression",
"type": "__expr__",
"uid": "__expr__"
},
"expression": "$D * ($D > 0)",
"hide": false,
"refId": "F",
"type": "math"
}
],
"title": "CPU",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"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": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "unit",
"value": "percent"
},
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 34
},
"hideTimeOverride": false,
"id": 4,
"links": [],
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.3.4",
"targets": [
{
"application": {
"filter": ""
},
"datasource": {
"type": "prometheus",
"uid": "E9TOD4HMz"
},
"exemplar": true,
"expr": "windows_logical_disk_free_bytes{instance=\"$server\",volume!=\"P:\"}",
"functions": [],
"group": {
"filter": ""
},
"hide": false,
"host": {
"filter": ""
},
"interval": "",
"intervalFactor": 1,
"item": {
"filter": ""
},
"legendFormat": "free {{volume}}",
"metric": "mysql_global_status_questions",
"mode": 0,
"options": {
"showDisabledItems": false
},
"refId": "A",
"step": 20
},
{
"datasource": {
"type": "prometheus",
"uid": "E9TOD4HMz"
},
"exemplar": true,
"expr": "windows_logical_disk_free_bytes{instance=\"$server\",volume!=\"P:\"}/windows_logical_disk_size_bytes{instance=\"$server\",volume!=\"P:\"}*100",
"hide": false,
"interval": "",
"legendFormat": "% free {{volume}}",
"refId": "B"
}
],
"title": "Hard disk free space",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic",
"seriesBy": "last"
},
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "decbytes"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "B"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "C"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "semi-dark-blue",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 40
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"expr": "rate(windows_logical_disk_write_bytes_total{instance=\"$server\"}[2m]) + rate(windows_logical_disk_read_bytes_total{instance=\"$server\"}[2m])",
"hide": false,
"legendFormat": "Total {{volume}}",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"expr": "rate(windows_logical_disk_read_bytes_total{instance=\"$server\"}[2m])",
"legendFormat": "read {{volume}}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"editorMode": "code",
"expr": "rate(windows_logical_disk_write_bytes_total{instance=\"$server\"}[2m])",
"hide": false,
"legendFormat": "write {{volume}}",
"range": true,
"refId": "B"
}
],
"title": "Disk usage",
"type": "timeseries"
}
],
"refresh": "10s",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "server1:9182",
"value": "server1:9182"
},
"datasource": {
"type": "prometheus",
"uid": "0b2CNZy4k"
},
"definition": "label_values(windows_cpu_interrupts_total{job=~\"onec_app_uat.*\", group=\"onec\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "server",
"multi": false,
"name": "server",
"options": [],
"query": {
"query": "label_values(windows_cpu_interrupts_total{job=~\"onec_app_uat.*\", group=\"onec\"}, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "1C Hardware metrics",
"uid": "0iSy0M-7k",
"version": 36,
"weekStart": ""
}