Commit Graph

107 Commits

Author SHA1 Message Date
Christoph Petrausch
03a3ddd6eb Bump golang version in docker image 2021-03-06 21:19:50 +01:00
Christoph Petrausch
345dd9b297 Switch to nonroot baseimage 2021-02-28 20:20:27 +01:00
Christoph Petrausch
82fe6fc76d Merge pull request #42 from hikhvar/fix-baseimage
Switch to distroless baseimage
v0.1.6-RC2
2021-02-28 20:17:13 +01:00
Christoph Petrausch
a8414c50d5 Merge pull request #43 from hikhvar/fix.docs
docs: Fix docs
2021-02-28 20:07:59 +01:00
Christoph Petrausch
4dfd7c86d1 docs: Fix docs 2021-02-28 20:03:12 +01:00
Christoph Petrausch
62f606ee42 Fix docs 2021-02-28 20:03:06 +01:00
Christoph Petrausch
7e425236fe Switch to distroless baseimage 2021-02-28 19:57:54 +01:00
Christoph Petrausch
3e65257514 Merge pull request #39 from hikhvar/add-nfpm
Add debian packages
v0.1.6-RC1
2021-02-22 19:56:28 +01:00
Christoph Petrausch
252a63ea47 ci: Add linting deps 2021-02-22 19:32:29 +01:00
Christoph Petrausch
98b30037e3 ci: refactor test action 2021-02-22 19:29:08 +01:00
Christoph Petrausch
bb105aef38 Test on golang 1.16.x 2021-02-22 19:24:20 +01:00
Christoph Petrausch
325ca00bce Add debian packages 2021-02-22 19:22:43 +01:00
Christoph Petrausch
24df81ed32 Add fuzzing 2021-02-14 20:47:41 +01:00
Christoph Petrausch
de1ad007f1 Merge pull request #38 from hikhvar/build-multi-arch-images
Multi arch build
v0.1.5
2021-02-03 13:06:17 +01:00
Christoph Petrausch
04bf795ba8 Fix typo in image v0.1.5-RC6 2021-02-03 12:47:20 +01:00
Christoph Petrausch
2717da7d0b Add missing architectures. Remove github packages registry as deploy target v0.1.5-RC5 2021-02-03 12:39:20 +01:00
Christoph Petrausch
bbebcc608d Enable experimental features v0.1.5-RC4 2021-02-03 10:27:16 +01:00
Christoph Petrausch
fd1e70f82a Use buildx v0.1.5-RC3 2021-02-03 10:04:58 +01:00
Christoph Petrausch
1eae3e5534 Final fix 2021-02-03 09:51:57 +01:00
Christoph Petrausch
78da1d1dd7 Fix tagging, use arm5 aswell 2021-02-03 09:45:07 +01:00
Christoph Petrausch
6c71dcf45c Fix arm64 image tags 2021-02-03 09:37:41 +01:00
Christoph Petrausch
61ef50a0b0 Test multi arch build 2021-02-03 09:32:10 +01:00
Christoph Petrausch
4a90c02d8d Update Readme.md
Make readme consistent. Fix #35
2021-01-26 08:59:41 +01:00
Christoph Petrausch
af8098f3c8 Merge pull request #30 from hikhvar/allow-alternative-go-binary
Don't hardcode go binary path in makefile
v0.1.5-RC2
2021-01-23 22:15:26 +01:00
Christoph Petrausch
90584b72a7 Merge pull request #29 from hikhvar/fix-collection
Refactor cache datastructure to use a key per metric instead of a key…
2021-01-23 22:15:18 +01:00
Christoph Petrausch
d02411db3b Don't hardcode go binary path in makefile 2021-01-23 22:10:47 +01:00
Christoph Petrausch
e5cc73f9b2 Refactor cache datastructure to use a key per metric instead of a key per device
This should resolve #26
2021-01-23 22:09:33 +01:00
Christoph Petrausch
31cd757454 Merge pull request #27 from hikhvar/refactor-metrics
Refactor metric extraction from MQTT
2021-01-23 21:08:31 +01:00
Christoph Petrausch
15f13f5631 Increase shelly config v0.1.5-RC1 2020-11-08 22:55:52 +01:00
Christoph Petrausch
a4caaf59e0 Remove unused interface 2020-11-08 22:50:26 +01:00
Christoph Petrausch
ab0f600bfd Add unittests for parser 2020-11-08 22:50:07 +01:00
Christoph Petrausch
be4af9ff5e Refactor metric extraction from MQTT
This commit allows to extract the metric name from the topic path. Now
it can be configured if all metrics are in a object in a certain topic
or if every topic contains exactly one metric. However, currently these
modes can not be mixed.

This should solve !26

TODO:
* Update documentation
* Add unit tests
2020-11-08 22:01:36 +01:00
Christoph Petrausch
b3442ecf3b Merge pull request #25 from hikhvar/refactor-ci
move linting and docker build into test workflow
2020-11-01 21:17:56 +01:00
Christoph Petrausch
3a658d32b4 move linting and docker build into test workflow 2020-11-01 21:10:28 +01:00
Christoph Petrausch
6de0a07119 Update docs
fixes #21
v0.1.4
2020-11-01 21:06:03 +01:00
Christoph Petrausch
a6dbb18ce5 Merge pull request #24 from hikhvar/refactor-logging
Use go.uber.org/zap for logging
2020-11-01 20:25:15 +01:00
Christoph Petrausch
25f213a37e Please the linter 2020-10-29 21:10:48 +01:00
Christoph Petrausch
126e13428b Use go.uber.org/zap for logging
As mentioned in https://github.com/hikhvar/mqtt2prometheus/issues/23, we
do not use any logging framework at all. This was fine for getting the
exporter startet. However, with inreasing load the logging must be
configureable. This PR is a start to replace all instances of
"log.Printf" with the zap logger. The current configuration parameters
are the log level and the log format (console, json). We might expose
the log configuration to the config file. But I think this is overkill
for the current state of the exporter.
2020-10-29 20:58:28 +01:00
Christoph Petrausch
a774b61b93 Mark preleases automatically in the github releases. v0.1.4-RC1 2020-10-19 22:47:25 +02:00
Christoph Petrausch
0958d4c865 Only use goreleaser for docker images v0.1.3 2020-10-19 20:27:32 +02:00
Christoph Petrausch
004444a442 Use dedicated dockerfile for goreleaser v0.1.3-RC1 2020-10-19 20:21:07 +02:00
Christoph Petrausch
880157ecec Release docker images via goreleaser 2020-10-19 20:06:59 +02:00
Christoph Petrausch
6c6c9386c3 Add supported go versions notification 2020-09-19 23:49:31 +02:00
Christoph Petrausch
90d39dbc42 Move to Go 1.15. Drop 1.13 in tests 2020-09-19 23:47:07 +02:00
Christoph Petrausch
dc07489237 Fix Sprintf v0.1.2 2020-09-19 23:41:55 +02:00
Christoph Petrausch
31b233b4b0 Support multiple mqtt2prometheus instances per host by incorporate the pid into the mqtt client ID 2020-09-19 23:39:22 +02:00
Christoph Petrausch
9e4ab531b7 Add version flag to commandline v0.1.1 2020-09-19 20:07:33 +02:00
Christoph Petrausch
41680370ca Merge pull request #18 from vikramsubramanian/master
Changed incorrect port number
2020-09-18 17:22:33 +02:00
Vikram N. Subramanian
f14e2a7696 Changed incorrect port number
As mqtt2promethius is built from source,
it should export 9641:9641 instead of 8002:8002

Fixes issue #17
2020-09-18 10:52:29 -04:00
Christoph Petrausch
357948345d Merge pull request #16 from pulsar256/feature/improve-docs
clarified usage of topic wildcard in examples/doc
2020-09-02 06:53:31 +02:00