Skip to content

Commit bc48f45

Browse files
committed
change the order to prioritize otlp over prometheus
Signed-off-by: Alex Boten <[email protected]>
1 parent 18a8afc commit bc48f45

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

content/en/docs/collector/internal-telemetry.md

+17-14
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,42 @@ You can configure how internal metrics are generated and exposed by the
2525
Collector. By default, the Collector generates basic metrics about itself and
2626
exposes them using the OpenTelemetry Go
2727
[Prometheus exporter](https://github.com/open-telemetry/opentelemetry-go/tree/main/exporters/prometheus)
28-
for scraping at `http://127.0.0.1:8888/metrics`. You can expose the endpoint to
29-
one specific or all network interfaces when needed. For containerized
30-
environments, you might want to expose this port on a public interface.
28+
for scraping at `http://127.0.0.1:8888/metrics`.
3129

32-
Set the Prometheus config under `service::telemetry::metrics`:
30+
The Collector can push its internal metrics to an OTLP
31+
backend via the following configuration:
3332

3433
```yaml
3534
service:
3635
telemetry:
3736
metrics:
3837
readers:
39-
- pull:
38+
- periodic:
4039
exporter:
41-
prometheus:
42-
host: '0.0.0.0'
43-
port: 8888
40+
otlp:
41+
protocol: grpc/protobuf
42+
endpoint: http://localhost:14317
4443
```
4544
46-
Alternatively, the Collector can push its internal metrics via to an OTLP
47-
backend via the following configuration:
45+
Alternatively, you can expose the Prometheus endpoint to
46+
one specific or all network interfaces when needed. For containerized
47+
environments, you might want to expose this port on a public interface.
48+
49+
Set the Prometheus config under `service::telemetry::metrics`:
4850

4951
```yaml
5052
service:
5153
telemetry:
5254
metrics:
5355
readers:
54-
- periodic:
56+
- pull:
5557
exporter:
56-
otlp:
57-
protocol: grpc/protobuf
58-
endpoint: http://localhost:14317
58+
prometheus:
59+
host: '0.0.0.0'
60+
port: 8888
5961
```
6062

63+
6164
You can adjust the verbosity of the Collector metrics output by setting the
6265
`level` field to one of the following values:
6366

0 commit comments

Comments
 (0)