Skip to content

Commit a6e710e

Browse files
authored
fix tenant labels (#468)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the HelmRelease configuration for monitoring agents to simplify tenant label assignment by using the release namespace directly. - **Bug Fixes** - Adjusted the logging configuration for `fluent-bit` to ensure accurate categorization and processing of monitoring data. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 003edf8 commit a6e710e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apps/kubernetes/templates/helmreleases/monitoring-agents.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
vmagent:
4646
externalLabels:
4747
cluster: {{ .Release.Name }}
48-
tenant: {{ $targetTenant }}
48+
tenant: {{ .Release.Namespace }}
4949
remoteWrite:
5050
url: http://vminsert-shortterm.{{ $targetTenant }}.svc:8480/insert/0/prometheus
5151

@@ -97,7 +97,7 @@ spec:
9797
[FILTER]
9898
Name modify
9999
Match *
100-
Add tenant {{ $targetTenant }}
100+
Add tenant {{ .Release.Namespace }}
101101
[FILTER]
102102
Name modify
103103
Match *

0 commit comments

Comments
 (0)