endpoint name used for python-based workers that register a `KvMetricsPublisher`.
## Visualization
To visualize the metrics being exposed on the Prometheus endpoint,
see the Prometheus and Grafana configurations in
[deploy/metrics](deploy/metrics):
```bash
```bash
DYN_LOG=info cargo run --bin metrics ----namespace dynamo --component backend --endpoint generate
docker compose -f deploy/docker-compose.yml --profile metrics up -d
```
```
## Metrics Collection Modes
## Metrics Collection Modes
...
@@ -42,17 +95,16 @@ The metrics component supports two modes for exposing metrics in a Prometheus fo
...
@@ -42,17 +95,16 @@ The metrics component supports two modes for exposing metrics in a Prometheus fo
### Pull Mode (Default)
### Pull Mode (Default)
When running in pull mode (the default), the metrics component will expose a Prometheus metrics endpoint on the specified host and port that a Prometheus server or curl client can pull from:
When running in pull mode (the default), the metrics component will expose a
Prometheus metrics endpoint on the specified host and port that a
Prometheus server or curl client can pull from:
```bash
```bash
# Start metrics server on default host (0.0.0.0) and port (9091)
# Start metrics server on default host (0.0.0.0) and port (9091)
For ephemeral or batch jobs, or when metrics need to be pushed through a firewall, you can use Push mode. In this mode, the metrics component will periodically push metrics to an externally hosted Prometheus PushGateway:
For ephemeral or batch jobs, or when metrics need to be pushed through a firewall,
you can use Push mode. In this mode, the metrics component will periodically push