From c029ac22c4cd52617d9a17cdffba172485f1ec20 Mon Sep 17 00:00:00 2001 From: Douglas Camata <159076+douglascamata@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:28:27 +0100 Subject: [PATCH] Revert values autoformat --- otel-integration/k8s-helm/values.yaml | 58 +++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/otel-integration/k8s-helm/values.yaml b/otel-integration/k8s-helm/values.yaml index ae12d9a3..64ab130b 100644 --- a/otel-integration/k8s-helm/values.yaml +++ b/otel-integration/k8s-helm/values.yaml @@ -197,7 +197,7 @@ opentelemetry-agent: # This reduces target_info cardinality. reduceResourceAttributes: enabled: false - # Configures Host Metrics receiver to collect Entity Events. + # Configures Host Metrics receiver to collect Entity Events. hostEntityEvents: enabled: false config: @@ -721,15 +721,15 @@ opentelemetry-gateway: clusterRoleBinding: name: "coralogix-opentelemetry-gateway" rules: - - apiGroups: [""] - resources: ["pods", "namespaces"] - verbs: ["get", "watch", "list"] - - apiGroups: ["apps"] - resources: ["replicasets"] - verbs: ["get", "list", "watch"] - - apiGroups: ["extensions"] - resources: ["replicasets"] - verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["pods", "namespaces"] + verbs: ["get", "watch", "list"] + - apiGroups: ["apps"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] + - apiGroups: ["extensions"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] extraEnvs: - name: CORALOGIX_PRIVATE_KEY valueFrom: @@ -790,11 +790,11 @@ opentelemetry-gateway: # needed for self-monitored otel colector metrics transform/k8s_attributes: metric_statements: - - context: resource - statements: - - set(attributes["k8s.deployment.name"], attributes["k8s.replicaset.name"]) - - replace_pattern(attributes["k8s.deployment.name"], "^(.*)-[0-9a-zA-Z]+$", "$$1") where attributes["k8s.replicaset.name"] != nil - - delete_key(attributes, "k8s.replicaset.name") + - context: resource + statements: + - set(attributes["k8s.deployment.name"], attributes["k8s.replicaset.name"]) + - replace_pattern(attributes["k8s.deployment.name"], "^(.*)-[0-9a-zA-Z]+$", "$$1") where attributes["k8s.replicaset.name"] != nil + - delete_key(attributes, "k8s.replicaset.name") k8sattributes: filter: node_from_env_var: KUBE_NODE_NAME @@ -914,15 +914,15 @@ opentelemetry-receiver: clusterRoleBinding: name: "coralogix-opentelemetry-receiver" rules: - - apiGroups: [""] - resources: ["pods", "namespaces"] - verbs: ["get", "watch", "list"] - - apiGroups: ["apps"] - resources: ["replicasets"] - verbs: ["get", "list", "watch"] - - apiGroups: ["extensions"] - resources: ["replicasets"] - verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["pods", "namespaces"] + verbs: ["get", "watch", "list"] + - apiGroups: ["apps"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] + - apiGroups: ["extensions"] + resources: ["replicasets"] + verbs: ["get", "list", "watch"] extraEnvs: - name: CORALOGIX_PRIVATE_KEY valueFrom: @@ -983,11 +983,11 @@ opentelemetry-receiver: # needed for self-monitored otel colector metrics transform/k8s_attributes: metric_statements: - - context: resource - statements: - - set(attributes["k8s.deployment.name"], attributes["k8s.replicaset.name"]) - - replace_pattern(attributes["k8s.deployment.name"], "^(.*)-[0-9a-zA-Z]+$", "$$1") where attributes["k8s.replicaset.name"] != nil - - delete_key(attributes, "k8s.replicaset.name") + - context: resource + statements: + - set(attributes["k8s.deployment.name"], attributes["k8s.replicaset.name"]) + - replace_pattern(attributes["k8s.deployment.name"], "^(.*)-[0-9a-zA-Z]+$", "$$1") where attributes["k8s.replicaset.name"] != nil + - delete_key(attributes, "k8s.replicaset.name") k8sattributes: filter: node_from_env_var: KUBE_NODE_NAME