Comments (1)
I found the problem.
When I run exporter_exporter, without specifying -web.listen-address
, by default it tries to start a server on :9999
. But I already had exporter_exporter running on this port, so the HTTP server fails to bind.
Hence the HTTP server immediately terminates, without printing an error but returning an err value. But when a member of an errgroup terminates with an error, all the other members of the group are cancelled. (Possibly the TLS goroutine was cancelled before it even started).
I tried using eg.Wait()
but couldn't get it to work - it just hung. But converting the HTTP server to invoke Fatalf() sorts it:
root@ldex-mon2:~# ./exporter_exporter -config.file=/etc/prometheus/exporter_exporter.yml -config.dirs=/etc/prometheus/exporter_exporter.d -web.tls.listen-address ':9998' -web.tls.cert=/path/to/cert.pem -web.tls.key=/path/to/privkey.pem
FATA[0000] Failed starting HTTP server, listen tcp :9999: bind: address already in use source="main.go:236"
I will submit a PR.
from exporter_exporter.
Related Issues (20)
- FR: need method ot collect ALL metrics per request HOT 4
- exporter_exporter-0.5.0.linux-amd64 release is statically linked HOT 2
- ARM Release HOT 4
- build info missing from `--version`
- utf-8 encoded labels
- Better use 2048bit for the TLS-certificate-example
- http without any restriction is always open HOT 2
- github.com/prometheus/common/log is deprecated
- Verify does not work with OpenMetrics HOT 2
- Client sent an HTTP request to an HTTPS server HOT 1
- curl: (52) Empty reply from server HOT 6
- Transition option to keep the route for a default module HOT 6
- Support info metric type HOT 2
- Question - how to understand/debug verify issue HOT 3
- push latest tagged version to docker hub HOT 2
- Return multiple module data in one call HOT 4
- 0.5.0 binary depends on recent GLIBC HOT 7
- build problems on ubuntu 20 LTS HOT 1
- HTTP Config does not allow setting RootCAs? HOT 2
- Convert to using exporter-toolkit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exporter_exporter.