1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2025-06-30 20:41:50 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
487aac4b2a Use timeout flag for context cancelation 2024-09-30 19:48:43 -07:00
d620391f71 Enable more linters (#622) 2024-02-22 18:27:54 +00:00
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
0c29bc879a Add pre-commit and fix issues (#354) 2023-02-01 09:07:22 -08:00
c636d826c1 Simple parsing nginx metrics [parseStubStats] (#207) 2021-07-21 13:49:29 -07:00
f142a5006b Add ctx to http request 2021-06-28 19:06:56 -07:00
526178659d Fix error wrapping 2021-06-28 19:06:56 -07:00
8e98ee44b2 Stop using io/ioutil 2021-05-06 09:46:44 +09:00
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
8d90a86cdf Release 0.1.0 2018-05-30 14:49:53 +01:00