feat: Enable metrics by default
All checks were successful
/ pre-commit (push) Successful in 1m14s

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-08-27 22:56:53 +02:00
parent c54f32495b
commit a5ebf7607c
Signed by: jriou
GPG key ID: 9A099EDA51316854
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ The file format is **JSON**:
* **expiration** (int): Default expiration time in seconds
* **max_upload_size** (int): Maximum number of bytes received by the server for notes (the base64 encoding may use more space than the real size of the note)
* **show_version** (bool): Show version on the website
* **enable_metrics** (bool): Enable Prometheus endpoint (default false)
* **enable_metrics** (bool): Enable Prometheus endpoint (default true)
* **prometheus_route** (string): Route to expose Prometheus metrics (default "/metrics")
* **prometheus_notes_metric** (string): Name of the notes count metric (default "collerd_notes")
* **observation_internal** (int): Number of seconds to wait between two observations (default 60)

View file

@ -47,7 +47,7 @@ func NewConfig() *Config {
Expiration: 604800, // 7 days
MaxUploadSize: 10485760, // 10MiB (encoded)
ShowVersion: false,
EnableMetrics: false,
EnableMetrics: true,
PrometheusRoute: "/metrics",
PrometheusNotesMetric: "collerd_notes",
ObservationInterval: 60,