Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Prometheus exporter not listening on all addresses #51

Closed
ekarlso opened this issue Oct 1, 2018 · 3 comments
Closed

Prometheus exporter not listening on all addresses #51

ekarlso opened this issue Oct 1, 2018 · 3 comments

Comments

@ekarlso
Copy link

ekarlso commented Oct 1, 2018

I am assuming this should work but it doesnt listen on anything related to port 9184 then, if I change it to localhost instead of 0.0.0.0 then it works. Is it a bug or intentional?

var exporter = new PrometheusExporter(
new PrometheusExporterOptions()
{
    Url = new Uri("http://0.0.0.0:9184/metrics/")
},
Stats.ViewManager);

exporter.Start();
@SergeyKanzhelev
Copy link
Member

Come again. Is it working with localhost and NOT working with 0.0.0.0 or other way around?

@ekarlso
Copy link
Author

ekarlso commented Mar 24, 2019

@SergeyKanzhelev Sorry for the late answer :) It's not listening on all addresses when 0.0.0.0 is specified. It seems to be listening on no addresses then.

@SergeyKanzhelev
Copy link
Member

Moved to OpenTelemetry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants