1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-04-21 10:45:53 +03:00

11 Commits

Author SHA1 Message Date
Luca Comellini
5c317a6613
Switch to slog (#841) 2024-09-11 16:35:45 -07:00
Luca Comellini
28771684da
Add more linters (#733) 2024-06-17 14:39:36 +01:00
Luca Comellini
d620391f71
Enable more linters (#622) 2024-02-22 18:27:54 +00:00
oseoin
aa81230e53
Add Environment Variable options to flags managed in exporter-toolkit (#607)
* add env var options to flags managed in exporter-toolkit
2024-01-25 10:18:06 +00:00
Luca Comellini
2ab961100c
Don't try to connect to nginx on client creation (#504)
The client now is created without making a call to nginx.
When Collect() is called we try to get the metrics from nginx and if
it's not available it will set 'up' to 0 and not fail anymore.
2023-10-09 09:09:38 -07:00
Luca Comellini
965d9e423d
Replace flag with kingpin and use promlog (#420) 2023-06-09 23:03:27 +00:00
Jakub Jarosz
7e5213584c
Run tests in parallel 2022-04-01 09:44:14 +01:00
Dean Coakley
c699f2297f
Add constLabels support via cli arg/env var 2020-01-10 14:13:35 +00:00
m.nabokikh
319a7fdf89 Add ability to scrape and listen unix domain sockets
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2019-11-11 20:11:22 -08:00
Dean Coakley
d35d429dcc
Fix nginxRetries and timeout accepts a negative value
* Bug introduced in: b499ca793a
2019-04-03 11:49:13 +01:00
Dean Coakley
b499ca793a
Retry connection if nginx unavailable
Closes: https://github.com/nginxinc/nginx-prometheus-exporter/issues/36

* Add nginx.retries cli flag
* Add nginx.retry-interval cli flag
* Add handling of SIGTERM signals
* Add started log message
* Add createClientWithRetries test
* Add time.Duration env variables: timeout, nginxRetryInterval
* Fix error context: On OSS Failed to create client would be appended twice from nginx client and exporter
* Add environment variables to --help flag and readme.md
2019-03-11 15:22:09 +00:00