Skip to content

Commit

Permalink
[fluent-bit] Fix Grafana dashboard error (#433)
Browse files Browse the repository at this point in the history
* [fluent-bit] remove statically configured datasource uid and replace with placeholder to fix grafana error

Signed-off-by: Marco Boss <[email protected]>

* [fluent-bit] bump chart version for grafana dashboard change

Signed-off-by: Marco Boss <[email protected]>

---------

Signed-off-by: Marco Boss <[email protected]>
  • Loading branch information
bossm8 authored Nov 6, 2023
1 parent 38245a6 commit 8ce71d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.39.0
version: 0.39.1
appVersion: 2.1.10
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Updated Fluent Bit OCI image to v2.1.10."
description: "Replaced statically configured datasource with placeholder in grafana dashboard json"
20 changes: 10 additions & 10 deletions charts/fluent-bit/dashboards/fluent-bit.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"builtIn": 1,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"enable": true,
"hide": true,
Expand All @@ -28,7 +28,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"gridPos": {
"h": 1,
Expand All @@ -42,7 +42,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"refId": "A"
}
Expand Down Expand Up @@ -144,7 +144,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"gridPos": {
"h": 1,
Expand All @@ -158,7 +158,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"refId": "A"
}
Expand Down Expand Up @@ -1171,7 +1171,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"gridPos": {
"h": 1,
Expand All @@ -1185,7 +1185,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"refId": "A"
}
Expand Down Expand Up @@ -1321,7 +1321,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -1420,7 +1420,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"editorMode": "code",
"expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\",pod=~\"$pod\",container=\"fluent-bit\"}) by (pod)",
Expand All @@ -1432,7 +1432,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "$DS_PROMETHEUS"
},
"editorMode": "code",
"expr": "avg(kube_pod_container_resource_requests{job=\"kube-state-metrics\",namespace=\"$namespace\",pod=~\"$pod\",container=\"fluent-bit\",resource=\"cpu\"})",
Expand Down

0 comments on commit 8ce71d0

Please sign in to comment.