6.4. Internal Metrics of pgpro-otel-collector #
pgpro-otel-collector supports collecting and outputting diagnostic data about its operation. The detailed information about this function can be found here.
Internal diagnostics can be enabled in the service.telemetry section. By default, diagnostic data is available through both logs and Prometheus-format metrics.
Configuration example:
service:
telemetry:
logs:
encoding: json
level: info
output_paths:
- stderr
error_output_paths:
- stderr
initial_fields: null
development: true
disable_caller: true
disable_stacktrace: true
metrics:
readers:
- pull:
exporter:
prometheus:
host: localhost
port: 8888
level: detailed