1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-04-19 23:42:14 +03:00

8 Commits

Author SHA1 Message Date
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
0c29bc879a
Add pre-commit and fix issues (#354) 2023-02-01 09:07:22 -08:00
Andrei Grazhdankov
c636d826c1
Simple parsing nginx metrics [parseStubStats] (#207) 2021-07-21 13:49:29 -07:00
Luca Comellini
f142a5006b Add ctx to http request 2021-06-28 19:06:56 -07:00
Luca Comellini
526178659d Fix error wrapping 2021-06-28 19:06:56 -07:00
inosato
8e98ee44b2 Stop using io/ioutil 2021-05-06 09:46:44 +09: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
Michael Pleshakov
8d90a86cdf Release 0.1.0 2018-05-30 14:49:53 +01:00