Change open census to OpenTelemetry in readme file + Update prometheus quick guide in readme (#123)
* Changed open census to OpenTelemetry in readme file * Added + wildcard, updated sample and readme to reflect sample
This commit is contained in:
parent
cfd233c9ca
commit
0554756e8c
|
|
@ -49,7 +49,7 @@ We encourage contributions. Use tags [up-for-grabs][up-for-grabs-issues] and
|
|||
|
||||
## OpenTelemetry QuickStart: collecting data
|
||||
|
||||
You can use Open Census API to instrument code and report data. Or use one of
|
||||
You can use OpenTelemetry API to instrument code and report data. Or use one of
|
||||
automatic data collection modules.
|
||||
|
||||
### Using ASP.NET Core incoming requests collector
|
||||
|
|
@ -199,7 +199,7 @@ Configure Prometheus exporter to have stats collected by Prometheus.
|
|||
var exporter = new PrometheusExporter(
|
||||
new PrometheusExporterOptions()
|
||||
{
|
||||
Url = new Uri("http://localhost:9184/metrics/")
|
||||
Url = "http://+:9184/metrics/"
|
||||
},
|
||||
Stats.ViewManager);
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
var exporter = new PrometheusExporter(
|
||||
new PrometheusExporterOptions()
|
||||
{
|
||||
Url = "http://localhost:9184/metrics/"
|
||||
Url = "http://+:9184/metrics/" // "+" is a wildcard used to listen to all hostnames
|
||||
},
|
||||
Stats.ViewManager);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue