From 15f13f56312d4909e77f1451b5c00b88a33aabf0 Mon Sep 17 00:00:00 2001 From: Christoph Petrausch Date: Sun, 8 Nov 2020 22:55:52 +0100 Subject: [PATCH] Increase shelly config --- .github/workflows/release.yml | 2 +- hack/shelly.yaml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37e79d9..bb88c25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: with: go-version: 1.15.x - name: Test - run: go test ./... + run: go test -cover ./... - name: Vet run: go vet ./... # Login to the registries diff --git a/hack/shelly.yaml b/hack/shelly.yaml index acfbe7c..d43c5dd 100644 --- a/hack/shelly.yaml +++ b/hack/shelly.yaml @@ -16,6 +16,28 @@ metrics: # The prometheus type for this metric. Valid values are: "gauge" and "counter" type: gauge # A map of string to string for constant labels. This labels will be attached to every prometheus metric + const_labels: + sensor_type: shelly + # The name of the metric in prometheus + - prom_name: humidity + # The name of the metric in a MQTT JSON message + mqtt_name: humidity + # The prometheus help text for this metric + help: shelly humidity reading + # The prometheus type for this metric. Valid values are: "gauge" and "counter" + type: gauge + # A map of string to string for constant labels. This labels will be attached to every prometheus metric + const_labels: + sensor_type: shelly + # The name of the metric in prometheus + - prom_name: battery + # The name of the metric in a MQTT JSON message + mqtt_name: battery + # The prometheus help text for this metric + help: shelly battery reading + # The prometheus type for this metric. Valid values are: "gauge" and "counter" + type: gauge + # A map of string to string for constant labels. This labels will be attached to every prometheus metric const_labels: sensor_type: shelly # The name of the metric in prometheus \ No newline at end of file