From 09c707e4478c04ea6adb48ce19b045e2d0ba176b Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Jun 2021 00:40:11 +0200 Subject: [PATCH 1/2] [fronius-exporter] Remove quotes from site name The quotes were actually part of the label metrics. This is unintentional. --- charts/fronius-exporter/Chart.yaml | 2 +- charts/fronius-exporter/README.md | 2 +- charts/fronius-exporter/templates/deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/fronius-exporter/Chart.yaml b/charts/fronius-exporter/Chart.yaml index 5b01e98..040015b 100644 --- a/charts/fronius-exporter/Chart.yaml +++ b/charts/fronius-exporter/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.0 +version: 0.4.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/fronius-exporter/README.md b/charts/fronius-exporter/README.md index 57ada44..b66c2f4 100644 --- a/charts/fronius-exporter/README.md +++ b/charts/fronius-exporter/README.md @@ -1,6 +1,6 @@ # fronius-exporter -![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Prometheus Exporter for Fronius Symo Photovoltaics diff --git a/charts/fronius-exporter/templates/deployment.yaml b/charts/fronius-exporter/templates/deployment.yaml index a40136f..724cd2e 100644 --- a/charts/fronius-exporter/templates/deployment.yaml +++ b/charts/fronius-exporter/templates/deployment.yaml @@ -33,7 +33,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} args: - --symo.url={{ .Values.exporter.symoUrl }} - - --symo.site={{ .Values.exporter.siteName | quote }} + - --symo.site={{ .Values.exporter.siteName }} - --symo.timeout={{ .Values.exporter.timeoutSeconds }} {{- range .Values.exporter.additionalArgs }} - {{ . }} From 4e20982fcf60cbf59d8243357222fe073a677420 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Jun 2021 00:41:03 +0200 Subject: [PATCH 2/2] [fronius-exporter] Drop url field from Telegraf metrics It's largely useless when used as a sidecar --- charts/fronius-exporter/templates/telegraf-secret.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/fronius-exporter/templates/telegraf-secret.yaml b/charts/fronius-exporter/templates/telegraf-secret.yaml index c095cb0..ab4ff87 100644 --- a/charts/fronius-exporter/templates/telegraf-secret.yaml +++ b/charts/fronius-exporter/templates/telegraf-secret.yaml @@ -10,6 +10,7 @@ stringData: [[inputs.prometheus]] urls = ["http://localhost:8080/metrics"] interval = {{ .Values.telegraf.interval | quote }} + fielddrop = ["url"] [[outputs.influxdb_v2]] urls = [{{ .Values.telegraf.influxdb.url | quote }}] token = {{ .Values.telegraf.influxdb.token | quote }}