Christoph Petrausch
66d4028eff
Merge pull request #141 from chrschn/monotonic_gauge
...
Add option to enforce strict monotonicy in metrics
2024-03-25 05:33:34 +01:00
chrschn
72289eeb10
Merge branch 'master' into monotonic_gauge
2024-02-05 22:15:55 +01:00
Christian Schneider
84ed960831
Restrict to Go 1.14 functionality
2024-02-05 21:56:40 +01:00
Christian Schneider
4943c97963
Add option to enforce strict monotonicy in metrics.
...
This change adds the new option `force_monotonicy` to metric
configurations. It is intended for almost-but-not-really monotinic
sources, such as counters which reset when the sensor is restarted.
When this option is set to `true`, the source metric value is regularly
written to disk. This allows us to detect and compensate counter resets
even between restarts. When a reset is detected, the last value before
the reset becomes the new offset, which is added to the metric value
going forth. The result is a strictly monotonic time series, like an
ever increasing counter.
2024-02-05 21:04:52 +01:00
Christoph Petrausch
5c1917ff68
Bump action versions
2024-02-05 21:04:52 +01:00
Christoph Petrausch
c071e92223
Fix go releaser config
2024-02-05 21:04:52 +01:00
Christoph Petrausch
6e9f1a21af
Fix goreleaser deprecation
2024-02-05 21:04:52 +01:00
Christoph Petrausch
7419ffac11
Bump to Go 1.21 in tests in relase
2024-02-05 21:04:52 +01:00
Christoph Petrausch
70de9d66d7
Bump newest version to go 1.21 in tests
2024-02-05 21:04:52 +01:00
Renovate Bot
a963576416
Update dependency prom/prometheus to v2.48.1
2024-02-05 21:04:52 +01:00
Renovate Bot
1f018bf108
Update dependency golang to v1.21
2024-02-05 21:04:52 +01:00
yan
9da7b1b379
Handle json payload in metric_per_topic mode
2024-02-05 21:04:52 +01:00
dmolle
d562b927f8
Update Readme.md
...
JSON needs to be upper case, otherwiese "could not setup a metric extractor {"error": "unsupported object format: json"} " is thrown.
2024-02-05 21:04:52 +01:00
Alexander Bakker
6d695bdbf4
Rename received_messages metric to be more conventional
...
This patch renames the ``received_messages`` metric to
``mqtt2prometheus_received_messages_total``, making it a bit more in
line with conventional Prometheus metric naming.
I also slightly adjusted the descriptions.
2024-02-05 21:04:52 +01:00
Christoph Petrausch
47658bb8da
Merge pull request #142 from hikhvar/hikhvar-patch-1
...
Bump newest version to go 1.21
v0.1.8-RC1
2023-12-14 23:30:27 +01:00
Christoph Petrausch
980736228f
Bump action versions
2023-12-14 23:22:37 +01:00
Christoph Petrausch
8bf0346b10
Fix go releaser config
2023-12-14 23:22:25 +01:00
Christoph Petrausch
b3c4e7615b
Fix goreleaser deprecation
2023-12-14 23:17:40 +01:00
Christoph Petrausch
592cb840d9
Bump to Go 1.21 in tests in relase
2023-12-14 23:09:17 +01:00
Christoph Petrausch
eaaecc2d81
Bump newest version to go 1.21 in tests
2023-12-14 23:06:01 +01:00
Christoph Petrausch
9ac285c236
Merge pull request #127 from hikhvar/renovate/prom-prometheus-2.x
...
Update dependency prom/prometheus to v2.43.0
2023-12-14 23:05:09 +01:00
Christoph Petrausch
f96b7f3bdc
Merge pull request #136 from hikhvar/renovate/golang-1.x
...
Update dependency golang to v1.21
2023-12-14 23:03:07 +01:00
Christoph Petrausch
b27f5a8c2e
Merge pull request #131 from y-martin/jsonpayload-metric-per-topic
...
Handle json payload in metric_per_topic mode
2023-12-14 22:50:44 +01:00
Christoph Petrausch
f6b8e4dbb1
Merge pull request #129 from dmolle/patch-1
...
Update Readme.md: object_per_topic_config: encoding need to be upper case
2023-12-14 22:48:48 +01:00
Christoph Petrausch
05784700cd
Merge pull request #130 from alexbakker/metric-names
...
Rename received_messages metric to be more conventional
2023-12-14 22:48:27 +01:00
Renovate Bot
09558b1ddb
Update dependency prom/prometheus to v2.48.1
2023-12-09 14:27:46 +00:00
Renovate Bot
28b465c46e
Update dependency golang to v1.21
2023-08-09 14:31:54 +00:00
Christoph Petrausch
dbd47d303b
Merge pull request #132 from timbuchwaldt/patch-1
...
Fix typo
2023-04-24 08:13:13 +02:00
Tim Buchwaldt
74563f1caa
Fix typo
2023-04-24 07:58:30 +02:00
yan
51b627abce
Handle json payload in metric_per_topic mode
2023-04-19 01:06:13 +02:00
Alexander Bakker
6375aacc87
Rename received_messages metric to be more conventional
...
This patch renames the ``received_messages`` metric to
``mqtt2prometheus_received_messages_total``, making it a bit more in
line with conventional Prometheus metric naming.
I also slightly adjusted the descriptions.
2023-04-13 23:33:38 +02:00
dmolle
ced08556ab
Update Readme.md
...
JSON needs to be upper case, otherwiese "could not setup a metric extractor {"error": "unsupported object format: json"} " is thrown.
2023-04-01 01:32:24 +02:00
Christoph Petrausch
1e7d2bfbfe
Merge pull request #124 from hikhvar/renovate/prom-prometheus-2.x
...
Update dependency prom/prometheus to v2.42.0
2023-03-08 20:31:24 +01:00
Renovate Bot
bf2b08cfb9
Update dependency prom/prometheus to v2.42.0
2023-03-08 14:31:41 +00:00
Christoph Petrausch
c9fccd1524
Merge pull request #123 from hikhvar/renovate/golang-1.x
...
Update dependency golang to v1.20
2023-03-08 10:36:38 +01:00
Renovate Bot
250183bd9f
Update dependency golang to v1.20
2023-03-07 14:31:43 +00:00
Christoph Petrausch
a5e579d1a4
Merge pull request #122 from hikhvar/dependabot/go_modules/github.com/prometheus/client_golang-1.11.1
...
Bump github.com/prometheus/client_golang from 1.11.0 to 1.11.1
2023-03-07 08:13:18 +01:00
Christoph Petrausch
c9296a9751
Update renovate.yaml
2023-02-25 21:12:42 +01:00
Christoph Petrausch
bc2bcd8edc
Update renovate.js
2023-02-25 21:11:20 +01:00
dependabot[bot]
d0d8a9935b
Bump github.com/prometheus/client_golang from 1.11.0 to 1.11.1
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.11.0...v1.11.1 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-15 03:14:58 +00:00
Christoph Petrausch
509fda8945
Merge pull request #120 from m-rtijn/improve-systemd-service-file
...
Improve systemd unit file security and fix debian packaging
2023-02-05 07:47:10 +01:00
Martijn
199048e7f4
Improve systemd unit file security and fix debian packaging
2023-02-04 15:48:23 +01:00
Christoph Petrausch
ed0c8bd46f
Merge pull request #118 from mvadu/add-secret-support
...
add support for reading mqtt password from file
v0.1.7
v0.1.7-RC4
2023-01-30 16:52:01 +01:00
mvadu
76aaeff1ff
typo in readme
2023-01-30 09:32:25 -05:00
mvadu
3cf984104a
handle review comments
2023-01-30 09:27:24 -05:00
mvadu
9f6f38263c
add support for reading mqtt password from file
2023-01-25 00:02:48 -05:00
Christoph Petrausch
db6213e379
Merge pull request #115 from wmoss/wmoss-fix-sensor_filter_name-errors
...
Remove incorrect errors when using SensorNameFilter
v0.1.7-RC3
2023-01-04 08:52:02 +01:00
Will Moss
f03d0841f4
Remove incorrect errors from SensorNameFilter
...
This commit reorganizes the logic in parseMetric to have it take in a MetricConfig so that the extractor can find the config and properly handle the case when there's no config found.
2023-01-03 21:44:05 -08:00
Christoph Petrausch
682d2c1212
Merge pull request #114 from wmoss/wmoss-per_topic_config
...
Adding documentation for object_per_topic_config and metric_per_topic_config
2023-01-02 16:52:40 +01:00
Will Moss
6bc96fcfb8
Add sample config file for metric_per_topic_config
2023-01-01 12:13:59 -08:00