Skip to content

Commit

Permalink
Upgrade old plugin
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed May 22, 2024
1 parent 93aaf29 commit 75632dc
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 210 deletions.
178 changes: 108 additions & 70 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 Expand Up @@ -6281,4 +6319,4 @@
"title": "Loki / Operational",
"uid": "operational",
"version": 0
}
}
Loading

0 comments on commit 75632dc

Please sign in to comment.