2022-06-15 07:51:47 +00:00
|
|
|
---
|
|
|
|
title: "Metrics"
|
|
|
|
description: "Configuring the Metrics Telemetry settings"
|
|
|
|
lead: "Configuring the Metrics Telemetry settings."
|
2022-06-28 05:27:14 +00:00
|
|
|
date: 2022-06-15T17:51:47+10:00
|
2022-06-15 07:51:47 +00:00
|
|
|
draft: false
|
|
|
|
images: []
|
|
|
|
menu:
|
|
|
|
configuration:
|
|
|
|
parent: "telemetry"
|
|
|
|
weight: 108200
|
|
|
|
toc: true
|
|
|
|
---
|
|
|
|
|
|
|
|
*Authelia* allows administrators to configure a [Prometheus] Metrics Exporter.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2023-05-04 11:23:15 +00:00
|
|
|
{{< config-alert-example >}}
|
|
|
|
|
2022-06-15 07:51:47 +00:00
|
|
|
```yaml
|
|
|
|
telemetry:
|
|
|
|
metrics:
|
|
|
|
enabled: false
|
2023-05-07 06:39:17 +00:00
|
|
|
address: 'tcp://:9959'
|
2023-05-08 03:51:17 +00:00
|
|
|
umask: 0022
|
2022-08-08 21:50:12 +00:00
|
|
|
buffers:
|
|
|
|
read: 4096
|
|
|
|
write: 4096
|
|
|
|
timeouts:
|
2023-05-07 06:39:17 +00:00
|
|
|
read: '6s'
|
|
|
|
write: '6s'
|
|
|
|
idle: '30s'
|
2022-06-15 07:51:47 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
2023-05-04 11:23:15 +00:00
|
|
|
This section describes the individual configuration options.
|
|
|
|
|
2022-06-15 07:51:47 +00:00
|
|
|
### enabled
|
|
|
|
|
|
|
|
{{< confkey type="boolean" default="false" required="no" >}}
|
|
|
|
|
|
|
|
Determines if the [Prometheus] HTTP Metrics Exporter is enabled.
|
|
|
|
|
|
|
|
### address
|
|
|
|
|
2023-05-07 05:48:26 +00:00
|
|
|
{{< confkey type="address" default="tcp://:9959" required="no" >}}
|
2022-06-15 07:51:47 +00:00
|
|
|
|
2023-05-07 05:48:26 +00:00
|
|
|
*__Reference Note:__ This configuration option uses the [address common syntax](../prologue/common.md#address). Please
|
|
|
|
see the [documentation](../prologue/common.md#address) on this format for more information.*
|
|
|
|
|
|
|
|
Configures the listener address for the [Prometheus] Metrics Exporter HTTP Server. The address itself is a listener and
|
|
|
|
the scheme must either be the `unix` scheme or one of the `tcp` schemes.
|
|
|
|
|
|
|
|
### umask
|
|
|
|
|
|
|
|
{{< confkey type="int" required="no" >}}
|
|
|
|
|
2023-05-08 03:51:17 +00:00
|
|
|
If set temporarily changes the umask during the creation of the unix domain socket if configured as such in the
|
|
|
|
[address](#address). Typically this should be set before the process is actually running and users should not use this
|
|
|
|
option, however it's recognized in various specific scenarios this may not be completely adequate.
|
|
|
|
|
|
|
|
One such example is when you want the proxy to have permission to the socket but not the files, in which case running a
|
|
|
|
umask of `0077` by default is good, and running a umask of `0027` so that the group Authelia is running as has
|
|
|
|
permission to the socket.
|
|
|
|
|
|
|
|
This value should typically be prefixed with a `0` to ensure the relevant parsers handle it correctly.
|
2022-06-15 07:51:47 +00:00
|
|
|
|
2022-08-08 21:50:12 +00:00
|
|
|
### buffers
|
|
|
|
|
|
|
|
Configures the server buffers. See the [Server Buffers](../prologue/common.md#server-buffers) documentation for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
### timeouts
|
|
|
|
|
|
|
|
Configures the server timeouts. See the [Server Timeouts](../prologue/common.md#server-timeouts) documentation for more
|
|
|
|
information.
|
|
|
|
|
2022-06-15 07:51:47 +00:00
|
|
|
## See More
|
|
|
|
|
|
|
|
- [Telemetry Reference Documentation](../../reference/guides/metrics.md)
|
|
|
|
|
|
|
|
[Prometheus]: https://prometheus.io/
|