Skip to content

Commit

Permalink
Increase shelly config
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch committed Nov 8, 2020
1 parent a4caaf5 commit 15f13f5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions hack/shelly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15f13f5

Please sign in to comment.