Skip to content

Commit 6c8f73d

Browse files
author
Robin Hermann
committed
fix: cri parsing variable by using textbox
1 parent 08c0055 commit 6c8f73d

2 files changed

Lines changed: 12 additions & 21 deletions

File tree

helm/hubble-observer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: hubble-observer
33
description: A Helm chart for Hubble Observer - A small observability component that monitors network flows within Cilium.
44
type: application
5-
version: 1.2.1
5+
version: 1.2.2
66
appVersion: "1.16.4"
77
keywords:
88
- networking

helm/hubble-observer/dashboard/cilium-hubble-flows.json

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
"label": "hubbleobservernamespace",
1515
"value": "kube-system",
1616
"description": "Namespace of the Hubble Observer pod"
17-
},
18-
{
19-
"name": "VAR_CRI_LOGPARSER",
20-
"type": "constant",
21-
"label": "cri_logparser",
22-
"value": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json",
23-
"description": "Parses CRI log lines, extracting timestamp, stream, flags, and message. Only the message part is taken if it matches, then it is parsed as JSON."
2417
}
2518
],
2619
"__elements": {},
@@ -1433,24 +1426,22 @@
14331426
]
14341427
},
14351428
{
1429+
"current": {
1430+
"text": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json",
1431+
"value": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json"
1432+
},
14361433
"description": "Parses CRI log lines, extracting timestamp, stream, flags, and message. Only the message part is taken if it matches, then it is parsed as JSON.",
14371434
"hide": 2,
14381435
"name": "cri_logparser",
1439-
"query": "${VAR_CRI_LOGPARSER}",
1440-
"skipUrlSync": true,
1441-
"type": "constant",
1442-
"current": {
1443-
"value": "${VAR_CRI_LOGPARSER}",
1444-
"text": "${VAR_CRI_LOGPARSER}",
1445-
"selected": false
1446-
},
14471436
"options": [
14481437
{
1449-
"value": "${VAR_CRI_LOGPARSER}",
1450-
"text": "${VAR_CRI_LOGPARSER}",
1451-
"selected": false
1438+
"selected": true,
1439+
"text": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json",
1440+
"value": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json"
14521441
}
1453-
]
1442+
],
1443+
"query": "regexp `^(?:(?P<timestamp>\\S+) (?P<stream>\\S+) (?P<flags>\\S+) )?(?P<message>.*)$` | line_format `{{.message}}` | json",
1444+
"type": "textbox"
14541445
}
14551446
]
14561447
},
@@ -1462,6 +1453,6 @@
14621453
"timezone": "browser",
14631454
"title": "Cilium Flows - Hubble Observer",
14641455
"uid": "ozk-cilium-flows-hubble-observer",
1465-
"version": 31,
1456+
"version": 32,
14661457
"weekStart": ""
14671458
}

0 commit comments

Comments
 (0)