add stage1

This commit is contained in:
2025-11-06 13:02:58 +03:00
parent 46ce79dadb
commit 694c30fb6d

View File

@@ -1,312 +1,316 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [
{ {
"$$hashKey": "object:75", "$$hashKey": "object:75",
"builtIn": 1, "builtIn": 1,
"datasource": { "datasource": {
"type": "datasource", "type": "datasource",
"uid": "grafana" "uid": "grafana"
}, },
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts", "name": "Annotations & Alerts",
"type": "dashboard" "type": "dashboard"
} }
] ]
},
"description": "Log Viewer Dashboard for Loki",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 18,
"links": [
{
"$$hashKey": "object:59",
"icon": "bolt",
"includeVars": true,
"keepTime": true,
"tags": [],
"targetBlank": true,
"title": "View In Explore",
"type": "link",
"url": "/explore?orgId=1&left=[\"now-1h\",\"now\",\"Loki\",{\"expr\":\"{job=\\\"$app\\\"}\"},{\"ui\":[true,true,true,\"none\"]}]"
}, },
"description": "Log Viewer Dashboard for Loki", {
"editable": true, "$$hashKey": "object:61",
"fiscalYearStartMonth": 0, "icon": "external link",
"graphTooltip": 0, "tags": [],
"id": 14, "targetBlank": true,
"links": [ "title": "Learn LogQL",
{ "type": "link",
"$$hashKey": "object:59", "url": "https://grafana.com/docs/loki/latest/logql/"
"icon": "bolt", }
"includeVars": true, ],
"keepTime": true, "panels": [
"tags": [], {
"targetBlank": true, "datasource": {
"title": "View In Explore", "type": "loki",
"type": "link", "uid": "loki"
"url": "/explore?orgId=1&left=[\"now-1h\",\"now\",\"Loki\",{\"expr\":\"{job=\\\"$app\\\"}\"},{\"ui\":[true,true,true,\"none\"]}]"
}, },
{ "fieldConfig": {
"$$hashKey": "object:61", "defaults": {
"icon": "external link", "color": {
"tags": [], "mode": "palette-classic"
"targetBlank": true, },
"title": "Learn LogQL", "custom": {
"type": "link", "axisBorderShow": false,
"url": "https://grafana.com/docs/loki/latest/logql/" "axisCenteredZero": false,
} "axisColorMode": "text",
], "axisLabel": "",
"panels": [ "axisPlacement": "hidden",
{ "barAlignment": 0,
"datasource": { "barWidthFactor": 0.6,
"type": "loki", "drawStyle": "bars",
"uid": "loki" "fillOpacity": 100,
}, "gradientMode": "none",
"fieldConfig": { "hideFrom": {
"defaults": { "legend": false,
"color": { "tooltip": false,
"mode": "palette-classic" "viz": false
}, },
"custom": { "insertNulls": false,
"axisBorderShow": false, "lineInterpolation": "linear",
"axisCenteredZero": false, "lineWidth": 1,
"axisColorMode": "text", "pointSize": 5,
"axisLabel": "", "scaleDistribution": {
"axisPlacement": "hidden", "type": "linear"
"barAlignment": 0, },
"barWidthFactor": 0.6, "showPoints": "never",
"drawStyle": "bars", "spanNulls": false,
"fillOpacity": 100, "stacking": {
"gradientMode": "none", "group": "A",
"hideFrom": { "mode": "none"
"legend": false, },
"tooltip": false, "thresholdsStyle": {
"viz": false "mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}, },
"insertNulls": false, {
"lineInterpolation": "linear", "color": "red",
"lineWidth": 1, "value": 80
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
} }
}, ]
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
}, },
"overrides": [] "unit": "short"
}, },
"gridPos": { "overrides": []
"h": 3,
"w": 24,
"x": 0,
"y": 0
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.6.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"direction": "backward",
"editorMode": "code",
"expr": "sum(count_over_time({job=~\"$env/$app\", cluster=\"$cluster\"} | json | (__error__!=\"JSONParserErr\") |= \"$search\" [$__interval]))",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "",
"type": "timeseries"
}, },
{ "gridPos": {
"datasource": { "h": 3,
"type": "loki", "w": 24,
"uid": "loki" "x": 0,
"y": 0
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
}, },
"fieldConfig": { "tooltip": {
"defaults": {}, "hideZeros": false,
"overrides": [] "mode": "multi",
}, "sort": "none"
"gridPos": { }
"h": 25, },
"w": 24, "pluginVersion": "12.1.0",
"x": 0, "targets": [
"y": 3
},
"id": 2,
"maxDataPoints": "",
"options": {
"dedupStrategy": "none",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"pluginVersion": "11.6.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"direction": "backward",
"editorMode": "code",
"expr": "{job=~\"$env/$app\", cluster=\"$cluster\"} |= \"$search\" | json | (__error__!=\"JSONParserErr\")",
"hide": false,
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "",
"transparent": true,
"type": "logs"
}
],
"preload": false,
"refresh": false,
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{ {
"current": {
"text": "yandex",
"value": "yandex"
},
"datasource": { "datasource": {
"type": "loki", "type": "loki",
"uid": "loki" "uid": "loki"
}, },
"definition": "", "direction": "backward",
"name": "cluster", "editorMode": "code",
"options": [], "expr": "sum(count_over_time({job=~\"$env/$app\", cluster=\"$cluster\"} | json | (__error__!=\"JSONParserErr\") |= \"$search\" [$__interval]))",
"query": { "legendFormat": "",
"label": "cluster", "queryType": "range",
"refId": "LokiVariableQueryEditor-VariableQuery", "refId": "A"
"stream": "", }
"type": 1 ],
}, "title": "",
"refresh": 1, "type": "timeseries"
"regex": "", },
"type": "query" {
}, "datasource": {
"type": "loki",
"uid": "loki"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 25,
"w": 24,
"x": 0,
"y": 3
},
"id": 2,
"maxDataPoints": "",
"options": {
"dedupStrategy": "none",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"pluginVersion": "12.1.0",
"targets": [
{ {
"allowCustomValue": false, "datasource": {
"current": { "type": "loki",
"uid": "loki"
},
"direction": "backward",
"editorMode": "code",
"expr": "{job=~\"$env/$app\", cluster=\"$cluster\"} |= \"$search\" | json | (__error__!=\"JSONParserErr\")",
"hide": false,
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "",
"transparent": true,
"type": "logs"
}
],
"preload": false,
"refresh": false,
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"current": {
"text": "local",
"value": "local"
},
"datasource": {
"type": "loki",
"uid": "loki"
},
"definition": "",
"name": "cluster",
"options": [],
"query": {
"label": "cluster",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "",
"type": 1
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allowCustomValue": false,
"current": {
"text": "stage1",
"value": "stage1"
},
"label": "Env",
"name": "env",
"options": [
{
"selected": false,
"text": "prod", "text": "prod",
"value": "prod" "value": "prod"
}, },
"label": "Env", {
"name": "env", "selected": false,
"options": [ "text": "stage",
{ "value": "stage"
"selected": true,
"text": "prod",
"value": "prod"
},
{
"selected": false,
"text": "stage",
"value": "stage"
}
],
"query": "prod,stage",
"type": "custom"
},
{
"allValue": ".*",
"allowCustomValue": false,
"current": {
"text": "All",
"value": [
"$__all"
]
}, },
"datasource": "loki", {
"definition": "", "selected": true,
"includeAll": true, "text": "stage1",
"label": "App", "value": "stage1"
"multi": true, }
"name": "app", ],
"options": [], "query": "prod,stage,stage1",
"query": { "type": "custom"
"label": "job", },
"refId": "LokiVariableQueryEditor-VariableQuery", {
"stream": "{cluster=~\"$cluster\", job=~\"$env/.*\"}", "allValue": ".*",
"type": 1 "allowCustomValue": false,
}, "current": {
"refresh": 1, "text": "All",
"regex": ".*/(.*)", "value": "$__all"
"type": "query"
}, },
{ "datasource": "loki",
"current": { "definition": "",
"includeAll": true,
"label": "App",
"multi": true,
"name": "app",
"options": [],
"query": {
"label": "job",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "{cluster=~\"$cluster\", job=~\"$env/.*\"}",
"type": 1
},
"refresh": 1,
"regex": ".*/(.*)",
"type": "query"
},
{
"current": {
"text": "",
"value": ""
},
"label": "String Match",
"name": "search",
"options": [
{
"selected": true,
"text": "", "text": "",
"value": "" "value": ""
}, }
"label": "String Match", ],
"name": "search", "query": "",
"options": [ "type": "textbox"
{ }
"selected": true, ]
"text": "", },
"value": "" "time": {
} "from": "now-1h",
], "to": "now"
"query": "", },
"type": "textbox" "timepicker": {
} "refresh_intervals": [
] "10s",
}, "30s",
"time": { "1m",
"from": "now-1h", "5m",
"to": "now" "15m",
}, "30m",
"timepicker": { "1h",
"refresh_intervals": [ "2h",
"10s", "1d"
"30s", ]
"1m", },
"5m", "timezone": "",
"15m", "title": "Logs / Apps K8S",
"30m", "uid": "new-k8s-dachboard-app",
"1h", "version": 2
"2h", }
"1d"
]
},
"timezone": "",
"title": "Logs / Apps K8S",
"uid": "logs-apps-k8s-uid",
"version": 5
}