-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add labels to metrics and discover servicemonitors in all namesp…
…aces (#821) Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
- Loading branch information
1 parent
ad59381
commit 7430a67
Showing
5 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
charts/fullstack-deployment/templates/configmaps/otel-collector-cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
{{- range $index, $node := ($.Values.hedera.nodes) }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: otel-collector-cm | ||
name: otel-cm-{{ $node.name }} | ||
namespace: {{ default $.Release.Namespace $.Values.global.namespaceOverride }} | ||
labels: | ||
{{- include "fullstack.testLabels" $ | nindent 4 }} | ||
data: | ||
config.yaml: | | ||
{{- tpl (.Files.Get "config-files/otel-collector-config.yaml") ( dict "otelDefaults" $.Values.defaults.sidecars.otelCollector "Template" $.Template ) | nindent 4 }} | ||
{{- $params := dict "" "" -}} | ||
{{- $_ignore := set $params "otelDefaults" $.Values.defaults.sidecars.otelCollector -}} | ||
{{- $_ignore = set $params "Template" $.Template -}} | ||
{{- $_ignore = set $params "environment_name" $.Release.Namespace -}} | ||
{{- $_ignore = set $params "otel_node_id" $index -}} | ||
{{- $_ignore = set $params "otel_instance_type" "hedera-node" -}} | ||
{{- tpl ( $.Files.Get "config-files/otel-collector-config.yaml" ) $params | nindent 4 }} | ||
--- | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters