Prometheus
The Prometheus Module allows Cookie Cutter to expose metrics via HTTP in a Prometheus-scrapeable format.
Setup
Application.create()
.metrics(prometheus({
port: 3000,
endpoint: "/metrics",
prefix: "",
}))
// ...
.run();
Configuration
Name | Description |
---|---|
port | port to expose metrics on (default is 3000) |
endpoint | endpoint to expose metrics on (default is /metrics) |
prefix | Prefix added to all exposed metrics (default is empty string) |