Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
c54f32495b
commit
a5ebf7607c
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue