Skip to content

Commit

Permalink
fix: upgrade old plugin for the loki-operational dashboard. (#13016)
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <quentin@giantswarm.io>
  • Loading branch information
QuentinBisson authored May 22, 2024
1 parent 8d9fb68 commit d3c9cec
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 208 deletions.
176 changes: 107 additions & 69 deletions production/loki-mixin-compiled-ssd/dashboards/loki-operational.json
Original file line number Diff line number Diff line change
Expand Up @@ -1657,81 +1657,114 @@
}
},
{
"columns": [ ],
"datasource": "$datasource",
"fontSize": "100%",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "right",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"decimals": 2,
"displayName": "",
"mappings": [ ],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "displayName",
"value": "Time"
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "tenant"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "reason"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 27
},
"id": 113,
"pageSize": null,
"panels": [ ],
"showHeader": true,
"sort": {
"col": 3,
"desc": true
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "tenant",
"thresholds": [ ],
"type": "string",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "reason",
"thresholds": [ ],
"type": "number",
"unit": "short"
"show": false
},
{
"alias": "",
"align": "right",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [ ],
"type": "number",
"unit": "short"
}
],
"showHeader": true
},
"panels": [ ],
"pluginVersion": "10.4.0",
"targets": [
{
"expr": "topk(10, sum by (tenant, reason) (sum_over_time(increase(loki_discarded_samples_total{cluster=\"$cluster\",namespace=\"$namespace\"}[$__rate_interval])[$__range:$__rate_interval])))",
Expand All @@ -1742,11 +1775,16 @@
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Discarded Lines Per Interval",
"transform": "table",
"type": "table-old"
"transformations": [
{
"id": "merge",
"options": {
"reducers": [ ]
}
}
],
"type": "table"
}
],
"targets": [ ],
Expand Down
Loading

0 comments on commit d3c9cec

Please sign in to comment.