Skip to content

Commit d3c9cec

Browse files
fix: upgrade old plugin for the loki-operational dashboard. (#13016)
Signed-off-by: QuentinBisson <quentin@giantswarm.io>
1 parent 8d9fb68 commit d3c9cec

File tree

3 files changed

+322
-208
lines changed

3 files changed

+322
-208
lines changed

‎production/loki-mixin-compiled-ssd/dashboards/loki-operational.json

Lines changed: 107 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,81 +1657,114 @@
16571657
}
16581658
},
16591659
{
1660-
"columns": [ ],
16611660
"datasource": "$datasource",
1662-
"fontSize": "100%",
1661+
"fieldConfig": {
1662+
"defaults": {
1663+
"color": {
1664+
"mode": "thresholds"
1665+
},
1666+
"custom": {
1667+
"align": "right",
1668+
"cellOptions": {
1669+
"type": "auto"
1670+
},
1671+
"inspect": false
1672+
},
1673+
"decimals": 2,
1674+
"displayName": "",
1675+
"mappings": [ ],
1676+
"thresholds": {
1677+
"mode": "absolute",
1678+
"steps": [
1679+
{
1680+
"color": "green",
1681+
"value": null
1682+
},
1683+
{
1684+
"color": "red",
1685+
"value": 80
1686+
}
1687+
]
1688+
},
1689+
"unit": "short"
1690+
},
1691+
"overrides": [
1692+
{
1693+
"matcher": {
1694+
"id": "byName",
1695+
"options": "Time"
1696+
},
1697+
"properties": [
1698+
{
1699+
"id": "displayName",
1700+
"value": "Time"
1701+
},
1702+
{
1703+
"id": "custom.align"
1704+
}
1705+
]
1706+
},
1707+
{
1708+
"matcher": {
1709+
"id": "byName",
1710+
"options": "tenant"
1711+
},
1712+
"properties": [
1713+
{
1714+
"id": "unit",
1715+
"value": "short"
1716+
},
1717+
{
1718+
"id": "decimals",
1719+
"value": 2
1720+
},
1721+
{
1722+
"id": "custom.align"
1723+
}
1724+
]
1725+
},
1726+
{
1727+
"matcher": {
1728+
"id": "byName",
1729+
"options": "reason"
1730+
},
1731+
"properties": [
1732+
{
1733+
"id": "unit",
1734+
"value": "short"
1735+
},
1736+
{
1737+
"id": "decimals",
1738+
"value": 2
1739+
},
1740+
{
1741+
"id": "custom.align"
1742+
}
1743+
]
1744+
}
1745+
]
1746+
},
16631747
"gridPos": {
16641748
"h": 8,
16651749
"w": 12,
16661750
"x": 12,
16671751
"y": 27
16681752
},
16691753
"id": 113,
1670-
"pageSize": null,
1671-
"panels": [ ],
1672-
"showHeader": true,
1673-
"sort": {
1674-
"col": 3,
1675-
"desc": true
1676-
},
1677-
"styles": [
1678-
{
1679-
"alias": "Time",
1680-
"align": "auto",
1681-
"dateFormat": "YYYY-MM-DD HH:mm:ss",
1682-
"pattern": "Time",
1683-
"type": "hidden"
1684-
},
1685-
{
1686-
"alias": "",
1687-
"align": "auto",
1688-
"colorMode": null,
1689-
"colors": [
1690-
"rgba(245, 54, 54, 0.9)",
1691-
"rgba(237, 129, 40, 0.89)",
1692-
"rgba(50, 172, 45, 0.97)"
1693-
],
1694-
"dateFormat": "YYYY-MM-DD HH:mm:ss",
1695-
"decimals": 2,
1696-
"mappingType": 1,
1697-
"pattern": "tenant",
1698-
"thresholds": [ ],
1699-
"type": "string",
1700-
"unit": "short"
1701-
},
1702-
{
1703-
"alias": "",
1704-
"align": "auto",
1705-
"colorMode": null,
1706-
"colors": [
1707-
"rgba(245, 54, 54, 0.9)",
1708-
"rgba(237, 129, 40, 0.89)",
1709-
"rgba(50, 172, 45, 0.97)"
1754+
"options": {
1755+
"cellHeight": "sm",
1756+
"footer": {
1757+
"countRows": false,
1758+
"fields": "",
1759+
"reducer": [
1760+
"sum"
17101761
],
1711-
"dateFormat": "YYYY-MM-DD HH:mm:ss",
1712-
"decimals": 2,
1713-
"mappingType": 1,
1714-
"pattern": "reason",
1715-
"thresholds": [ ],
1716-
"type": "number",
1717-
"unit": "short"
1762+
"show": false
17181763
},
1719-
{
1720-
"alias": "",
1721-
"align": "right",
1722-
"colorMode": null,
1723-
"colors": [
1724-
"rgba(245, 54, 54, 0.9)",
1725-
"rgba(237, 129, 40, 0.89)",
1726-
"rgba(50, 172, 45, 0.97)"
1727-
],
1728-
"decimals": 2,
1729-
"pattern": "/.*/",
1730-
"thresholds": [ ],
1731-
"type": "number",
1732-
"unit": "short"
1733-
}
1734-
],
1764+
"showHeader": true
1765+
},
1766+
"panels": [ ],
1767+
"pluginVersion": "10.4.0",
17351768
"targets": [
17361769
{
17371770
"expr": "topk(10, sum by (tenant, reason) (sum_over_time(increase(loki_discarded_samples_total{cluster=\"$cluster\",namespace=\"$namespace\"}[$__rate_interval])[$__range:$__rate_interval])))",
@@ -1742,11 +1775,16 @@
17421775
"refId": "A"
17431776
}
17441777
],
1745-
"timeFrom": null,
1746-
"timeShift": null,
17471778
"title": "Discarded Lines Per Interval",
1748-
"transform": "table",
1749-
"type": "table-old"
1779+
"transformations": [
1780+
{
1781+
"id": "merge",
1782+
"options": {
1783+
"reducers": [ ]
1784+
}
1785+
}
1786+
],
1787+
"type": "table"
17501788
}
17511789
],
17521790
"targets": [ ],

0 commit comments

Comments
 (0)