[docs] Update troubleshooting arguments (#4926)
* [docs] Update troubleshooting arguments Update troubleshooting to use correct command line option to change metrics address * update doc with before/after config
This commit is contained in:
parent
b8d86acb4b
commit
e214f7172b
|
|
@ -30,17 +30,30 @@ service:
|
||||||
|
|
||||||
### Metrics
|
### Metrics
|
||||||
|
|
||||||
Prometheus metrics are exposed locally on port `8888` and path `/metrics`.
|
Prometheus metrics are exposed locally on port `8888` and path `/metrics`. For
|
||||||
|
containerized environments it may be desirable to expose this port on a
|
||||||
|
public interface instead of just locally.
|
||||||
|
|
||||||
For containerized environments it may be desirable to expose this port on a
|
#### Version 0.42.0 and below:
|
||||||
public interface instead of just locally. The metrics address can be configured
|
|
||||||
by passing the `--metrics-addr` flag to the `otelcol` process. See `--help` for
|
Pass `--metrics-addr <ADDR>` flag to the `otelcol` process. See `--help` for
|
||||||
more details.
|
more details.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ otelcol --metrics-addr 0.0.0.0:8888
|
$ otelcol --metrics-addr 0.0.0.0:8888
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Version 0.43.0 and above:
|
||||||
|
Set the address in the config `service::telemetry::metrics`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
service:
|
||||||
|
telemetry:
|
||||||
|
metrics:
|
||||||
|
address: ":8888"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
A grafana dashboard for these metrics can be found
|
A grafana dashboard for these metrics can be found
|
||||||
[here](https://grafana.com/grafana/dashboards/11575).
|
[here](https://grafana.com/grafana/dashboards/11575).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue