Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat falcosidekick dashboard v2 #809

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions charts/falcosidekick/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ numbering uses [semantic versioning](http://semver.org).

Before release 0.1.20, the helm chart can be found in `falcosidekick` [repository](https://github.com/falcosecurity/falcosidekick/tree/master/deploy/helm/falcosidekick).

## 0.9.6

- Add new features to the Loki dashboard

## 0.9.5

- Move the `prometheus.io/scrape` annotation to the default values, to allow overrides.
Expand Down
108 changes: 91 additions & 17 deletions charts/falcosidekick/dashboards/falcosidekick-loki-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 5,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -75,8 +76,8 @@
"type": "loki",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "count by(priority) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` [$__auto]))",
"editorMode": "builder",
"expr": "count by(priority) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority` [$__auto]))",
"legendFormat": "{{priority}}",
"queryType": "range",
"refId": "A"
Expand Down Expand Up @@ -146,8 +147,8 @@
"type": "loki",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "count by(rule) (rate({priority=~\".+\", rule!=\"Falco internal: metrics snapshot\"} | logfmt | k8s_ns =~ `$namespace` [$__auto]))",
"editorMode": "builder",
"expr": "count by(rule) (rate({priority=~\".+\", rule!=\"Falco internal: metrics snapshot\"} | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority` [$__auto]))",
"legendFormat": "{{priority}}",
"queryType": "range",
"refId": "A"
Expand Down Expand Up @@ -251,6 +252,18 @@
"value": 450
}
]
},
{
"matcher": {
"id": "byName",
"options": "k8s_pod_name"
},
"properties": [
{
"id": "custom.width",
"value": 184
}
]
}
]
},
Expand All @@ -273,7 +286,12 @@
"show": false
},
"showHeader": true,
"sortBy": []
"sortBy": [
{
"desc": false,
"displayName": "k8s_pod_name"
}
]
},
"pluginVersion": "11.2.0",
"targets": [
Expand All @@ -283,7 +301,7 @@
"uid": "${datasource}"
},
"editorMode": "builder",
"expr": "count by(k8s_pod_name, rule, priority, k8s_ns) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` [$__auto]))",
"expr": "count by(k8s_pod_name, rule, priority, k8s_ns) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority` [$__auto]))",
"legendFormat": "",
"queryType": "instant",
"refId": "A"
Expand Down Expand Up @@ -337,7 +355,7 @@
},
"direction": "backward",
"editorMode": "builder",
"expr": "{priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace`",
"expr": "{priority=~\".+\"} |= `$line_filter` | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority`",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -399,8 +417,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -438,7 +455,7 @@
"uid": "loki"
},
"editorMode": "builder",
"expr": "count by(priority) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` [1m]))",
"expr": "count by(priority) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority` [1m]))",
"legendFormat": "{{priority}}",
"queryType": "range",
"refId": "A"
Expand Down Expand Up @@ -501,8 +518,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -540,7 +556,7 @@
"uid": "loki"
},
"editorMode": "builder",
"expr": "count by(rule) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` [1m]))",
"expr": "count by(rule) (rate({priority=~\".+\"} | logfmt | k8s_ns =~ `$namespace` | priority =~ `$priority` [1m]))",
"legendFormat": "{{priority}}",
"queryType": "range",
"refId": "A"
Expand All @@ -566,6 +582,8 @@
"kube-system",
"media",
"monitoring",
"rook",
"rook-cluster",
"storage",
"utilities",
"webs"
Expand All @@ -577,6 +595,8 @@
"kube-system",
"media",
"monitoring",
"rook",
"rook-cluster",
"storage",
"utilities",
"webs"
Expand Down Expand Up @@ -608,7 +628,7 @@
},
{
"current": {
"selected": true,
"selected": false,
"text": "Loki",
"value": "loki"
},
Expand All @@ -624,17 +644,71 @@
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": true,
"text": [
"Critical"
],
"value": [
"Critical"
]
},
"datasource": {
"type": "loki",
"uid": "${datasource}"
},
"definition": "",
"hide": 0,
"includeAll": true,
"label": "priority",
"multi": true,
"name": "priority",
"options": [],
"query": {
"label": "priority",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "",
"type": 1
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "",
"value": ""
},
"description": "Text to filter lines",
"hide": 0,
"label": "line_filter",
"name": "line_filter",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-30m",
"from": "now-24h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Falco logs",
"uid": "de6ixj4nl1kowc",
"version": 3,
"version": 2,
"weekStart": ""
}
}
Loading