From 58ddbaaaedf3a675d7ea3a1fc88963bfd96422f9 Mon Sep 17 00:00:00 2001 From: dsgnr Date: Fri, 18 Oct 2024 15:59:37 +0100 Subject: [PATCH] feat: adds snmp-exporter for prometheus --- apps/appsets/components.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/appsets/components.yaml b/apps/appsets/components.yaml index 86582672..af7f5f73 100644 --- a/apps/appsets/components.yaml +++ b/apps/appsets/components.yaml @@ -205,6 +205,24 @@ spec: - repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}' targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}' ref: deploy + - component: snmp-exporter + componentNamespace: monitoring + skipComponent: '{{has "snmp-exporter" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}' + sources: + - repoURL: https://prometheus-community.github.io/helm-charts + chart: prometheus-snmp-exporter + targetRevision: 5.6.0 + helm: + releaseName: prometheus-snmp-exporter + valueFiles: + - $deploy/{{.name}}/helm-configs/prometheus-snmp-exporter.yaml + ignoreMissingValueFiles: true + - repoURL: '{{index .metadata.annotations "uc_repo_git_url"}}' + targetRevision: '{{index .metadata.annotations "uc_repo_ref"}}' + ref: understack + - repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}' + targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}' + ref: deploy selector: # by setting the key in the elements 'skipComponent' to 'true' it will skip installing it # ArgoCD's templating operates with strings so it's the string "true"