Observability
P2G supports publishing Open Telemetry metrics. These metrics can be setup and configured in the Observability config section. P2G publishes the following:
- Logs via Serilog. Logs can be sunk to a variety of sources including Console, File, ElasticSearch, and Grafana Loki.
- Metrics via Prometheus. Metrics are exposed on a standard
/metrics
endpoint and the port is configurable. - Traces via Jaeger. Traces can be collected via an agent of your choice. Some options include Jaeger Agent/Jaeger Query, or Grafana Tempo.
- P2G also provides a sample Grafana dashboard which can be found in the repository.
The grafana dashboard assumes you have the following datasources setup but can be easily modified to meet your needs:
- Prometheus
- Loki
- If running as a docker image a docker metrics exporter