Skip to content

Commit

Permalink
salt: replace fluent-bit dashboard by one in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
eg-ayoub committed Sep 4, 2024
1 parent 117f180 commit 79dc5ad
Show file tree
Hide file tree
Showing 8 changed files with 1,618 additions and 1,521 deletions.
1 change: 0 additions & 1 deletion buildchain/buildchain/salt_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ def task(self) -> types.TaskDict:
Path("salt/metalk8s/addons/logging/deployed/init.sls"),
Path("salt/metalk8s/addons/logging/deployed/dashboards.sls"),
Path("salt/metalk8s/addons/logging/deployed/namespace.sls"),
Path("salt/metalk8s/addons/logging/deployed/files/fluent-bit.json"),
Path("salt/metalk8s/addons/logging/deployed/files/logs.json"),
Path("salt/metalk8s/addons/logging/deployed/files/loki.json"),
Path("salt/metalk8s/addons/logging/fluent-bit/config/fluent-bit.yaml.j2"),
Expand Down
4 changes: 4 additions & 0 deletions charts/fluent-bit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ serviceMonitor:
enabled: true
selector:
metalk8s.scality.com/monitor: ''

dashboards:
enabled: true
deterministicUid: true
16 changes: 11 additions & 5 deletions salt/metalk8s/addons/logging/deployed/dashboards.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
import configmaps_from_dashboards with context %}
{{ configmaps_from_dashboards([
{
'name': 'fluent-bit',
'title': 'Fluent Bit',
'tags': ['logging'],
},
{
'name': 'logs',
'title': 'Logs',
Expand All @@ -19,3 +14,14 @@
'tags': ['logging'],
},
]) }}
{#- In MetalK8s 127.0 we changed the fluent-bit dashboard to use
 the one from the helm chart. We need to remove the old one
 to avoid conflicts.
 This can be removed in `development/129.0` #}
Ensure old fluent-bit dashboard does no longer exists:
 metalk8s_kubernetes.object_absent:
- name: fluent-bit-dashboard
- namespace: metalk8s-monitoring
- apiVersion: v1
- kind: ConfigMap
Loading

0 comments on commit 79dc5ad

Please sign in to comment.