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

42 Commits

Author SHA1 Message Date
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
c47a53e3a7
Restore SCRAPE_URI env var (#586)
This was removed in #420 by mistake
2024-01-08 10:45:35 -07:00
Luca Comellini
94f563d523
Add completions and manpages (#580) 2023-12-27 06:51:54 -08:00
Luca Comellini
cbf7f33a41
Release 1.0.0 (#506) 2023-12-06 11:43:31 -08:00
Brandon Richardson
69bd82f1ba
Add support for multiple scrape addresses (#539)
Make the `nginx.scrape-uri` accept a slice of addresses, and register
prometheus collectors for each nginx instance. When multiple scrape
addresses are registered, include the scrape address as a label to
differentiate the metrics for each instance.
2023-11-20 13:03:37 -08:00
Haywood Shannon
ff324602c3
Add metrics from NGINX Plus API version 9 (#530)
Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>
2023-11-13 17:17:54 +00:00
Shehar Yaar
d57f771d0a
add cache metrics for NGINX plus (#540)
Signed-off-by: Mohammad Shehar Yaar Tausif <sheharyaar48@gmail.com>
2023-11-13 11:57:46 +00:00
Luca Comellini
ed87722f62
Fix logging (#526)
The logger was created before reading the flags and the format/level
didn't have any effect
2023-10-25 09:26:35 +01: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
dependabot[bot]
0d87c0b102
Bump github.com/nginxinc/nginx-plus-go-client from 0.11.0 to 1.0.0 (#503)
* Bump github.com/nginxinc/nginx-plus-go-client from 0.11.0 to 1.0.0

Bumps [github.com/nginxinc/nginx-plus-go-client](https://github.com/nginxinc/nginx-plus-go-client) from 0.11.0 to 1.0.0.
- [Release notes](https://github.com/nginxinc/nginx-plus-go-client/releases)
- [Changelog](https://github.com/nginxinc/nginx-plus-go-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nginxinc/nginx-plus-go-client/compare/v0.11.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/nginxinc/nginx-plus-go-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update plus client

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luca Comellini <luca.com@gmail.com>
2023-09-19 16:20:50 -07:00
Luca Comellini
f45b6fd440
Use web configuration from exporter-toolkit (#461)
Replaces manual implementation of TLS and adds Basic Auth.
2023-07-26 00:38:26 +00:00
Luca Comellini
18e8f98488
Deprecate old flag format (#460) 2023-07-20 09:14:27 -07:00
Luca Comellini
965d9e423d
Replace flag with kingpin and use promlog (#420) 2023-06-09 23:03:27 +00:00
Luca Comellini
f452ae5658
Add ReadHeaderTimeout to http.Server (#283) 2022-07-21 09:43:45 -07:00
Luca Comellini
5481906915
Read Go build info from the binary (#276) 2022-07-12 09:29:03 -07:00
Luca Comellini
85fe699df6 Remove superfluous else 2021-07-01 07:39:33 -07:00
Luca Comellini
a5e67158ea Remove InsecureSkipVerify issue 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
Luca Comellini
2a4758e70d
Add GoReleaser and fix missing vars in CI workflow (#163) 2021-03-18 16:50:08 -07:00
mpenate
d7cb1797d6 add tls support
Author:    mpenate <mpsanchez.desarrollo@gmail.com>
Date:      Fri Nov 6 17:23:10 2020 +0100
2020-12-02 14:21:18 -08:00
Lorcan McVeigh
7c45b2334b
Fix bugs in exporter 2020-11-30 15:08:26 +00:00
Lorcan McVeigh
1ffb988ca6
Add k8s object labels to tcp metrics
Co-authored-by: Dean Coakley <dean.s.coakley@gmail.com>
2020-11-25 15:39:38 +00:00
Julien Brochet
f5a5f8086c Add version cli argument 2020-11-09 16:53:15 -08:00
Lorcan McVeigh
6b1901af57
Extend Upstream Servers with pod_name label 2020-08-25 10:15:36 +01:00
Raul Marrero
66a9427a40 Add variable labels to Upstream Servers and Server Zones metrics 2020-08-04 11:51:19 +01:00
Yoan Blanc
837d51ee54
Fix link to metrics path
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-05-04 09:30:01 -07:00
Fabian Lüpke
831abae4a7
Implemented TLS client certificate authentication 2020-04-20 14:20:23 -07:00
Dean Coakley
c699f2297f
Add constLabels support via cli arg/env var 2020-01-10 14:13:35 +00:00
Asher Foa
73a7537203 set user agent on scrape requests to nginx 2019-11-13 11:08:20 -08: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
Raul Marrero
61f68fd65f Add zone sync metrics 2019-05-30 10:21:56 +01:00
Dean Coakley
770d447b93
Fix sleep for first retry attempt
* Bug introduced in: b499ca793a
2019-04-09 11:34:39 +01:00
Dean Coakley
d35d429dcc
Fix nginxRetries and timeout accepts a negative value
* Bug introduced in: b499ca793a
2019-04-03 11:49:13 +01:00
Raul Marrero
4ef2b34672 Add lint option to Makefile and fix lint issues 2019-03-21 19:24:14 +00: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
9ee37129a5 Add nginxexporter_build_info metric 2019-01-17 17:18:15 +00:00
Michael Pleshakov
4641a6904c Add nginx.timeout cli argument
Add -nginx.timeout cli argument for setting a timeout for scrapping
metrics from NGINX or NGINX Plus.
2019-01-11 18:00:54 +00:00
Raza Jhaveri
90107cb5bb add option to skip tls verify 2018-09-25 10:44:36 +01:00
Michael Pleshakov
e393d6127b Use nginx plus go sdk
Replace the NGINX Plus Client from the client package with the
NGINX Plus client from https://github.com/nginxinc/nginx-plus-go-sdk
2018-09-11 15:27:45 +01:00
Eduard Borges
d7fb3af4be Add support for environment variables 2018-08-18 21:05:50 -07:00
Michael Pleshakov
8d90a86cdf Release 0.1.0 2018-05-30 14:49:53 +01:00