mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-02-14 18:09:53 +00:00
Add goreleaser file and badges
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
config.yaml
|
||||
bin/
|
||||
vendor
|
||||
vendor
|
||||
dist
|
||||
|
||||
60
.goreleaser.yml
Normal file
60
.goreleaser.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
# This is an example goreleaser.yaml file with some sane defaults.
|
||||
# Make sure to check the documentation at http://goreleaser.com
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
- go mod download
|
||||
# you may remove this if you don't need go generate
|
||||
- go generate ./...
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
main: cmd/mqtt2prometheus.go
|
||||
# GOOS list to build for.
|
||||
# For more info refer to: https://golang.org/doc/install/source#environment
|
||||
# Defaults are darwin and linux.
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- freebsd
|
||||
- windows
|
||||
|
||||
# GOARCH to build for.
|
||||
# For more info refer to: https://golang.org/doc/install/source#environment
|
||||
# Defaults are 386 and amd64.
|
||||
goarch:
|
||||
- amd64
|
||||
- arm
|
||||
- arm64
|
||||
|
||||
# GOARM to build for when GOARCH is arm.
|
||||
# For more info refer to: https://golang.org/doc/install/source#environment
|
||||
# Default is only 6.
|
||||
goarm:
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
|
||||
# GOMIPS and GOMIPS64 to build when GOARCH is mips, mips64, mipsle or mips64le.
|
||||
# For more info refer to: https://golang.org/doc/install/source#environment
|
||||
# Default is empty.
|
||||
gomips:
|
||||
- hardfloat
|
||||
- softfloat
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: Darwin
|
||||
linux: Linux
|
||||
windows: Windows
|
||||
386: i386
|
||||
amd64: x86_64
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
@@ -1,4 +1,5 @@
|
||||
# MQTT2Prometheus
|
||||
 
|
||||
This exporter is an analog to the [Prometheus Pushgateway](https://github.com/prometheus/pushgateway). Clients can push
|
||||
metrics via MQTT to an MQTT Broker. This exporter subscribes to the broker and
|
||||
publish the received messages as prometheus metrics. I wrote this exporter to publish
|
||||
@@ -124,4 +125,4 @@ metrics:
|
||||
# A map of string to string for constant labels. This labels will be attached to every prometheus metric
|
||||
const_labels:
|
||||
sensor_type: dht22%
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user