You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+67-21Lines changed: 67 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ YAML's format, like Python code, is whitespace dependent for control structure i
5
5
blocks. If you're having problems with your rejected configuration, the first
6
6
thing you should do is ensure that the YAML syntax is correct.
7
7
8
-
The configuration file is split into three main sections: `Application`, `Daemon`, and `Logging`.
8
+
The configuration file is split into two main sections: `Application` and `Logging`.
9
9
10
10
## Application
11
11
@@ -15,7 +15,7 @@ The application section of the configuration is broken down into multiple top-le
15
15
|--------|-------------|
16
16
|`poll_interval`| How often rejected should poll consumer processes for status in seconds (int/float) |
17
17
|`sentry_dsn`| If Sentry support is installed, optionally set a global DSN for all consumers (str) |
18
-
|`stats`| Enable and configure statsd metric submission (obj) |
18
+
|`stats`| Enable and configure metrics submission via statsd and/or Prometheus (obj) |
19
19
|`Connections`| A subsection with RabbitMQ connection information for consumers (obj) |
20
20
|`Consumers`| Where each consumer type is configured (obj) |
21
21
@@ -24,19 +24,19 @@ The application section of the configuration is broken down into multiple top-le
24
24
| Option | Description |
25
25
|--------|-------------|
26
26
|`log`| Toggle top-level logging of consumer process stats (bool) |
27
-
|`influxdb`| Configure the submission of per-message measurements to InfluxDB (obj) |
27
+
|`prometheus`| Configure the Prometheus metrics exporter (obj) |
28
28
|`statsd`| Configure the submission of per-message measurements to statsd (obj) |
29
29
30
-
#### influxdb
30
+
#### prometheus
31
+
32
+
Requires `rejected[prometheus]` to be installed.
31
33
32
34
| Option | Description |
33
35
|--------|-------------|
34
-
|`scheme`| The scheme to use when submitting metrics to the InfluxDB server. Default: `http` (str) |
35
-
|`host`| The hostname or ip address of the InfluxDB server. Default: `localhost` (str) |
36
-
|`port`| The port of the influxdb server. Default: `8086` (int) |
37
-
|`user`| An optional username to use when submitting measurements. (str) |
38
-
|`password`| An optional password to use when submitting measurements. (str) |
39
-
|`database`| The InfluxDB database to submit measurements to. Default: `rejected` (str) |
36
+
|`enabled`| Toggle the Prometheus metrics HTTP endpoint on and off (bool) |
37
+
|`port`| The port to serve the `/metrics` endpoint on. Default: `9090` (int) |
38
+
39
+
See [Prometheus Metrics](#prometheus-metrics) below for the full list of exposed metrics.
40
40
41
41
#### statsd
42
42
@@ -94,7 +94,7 @@ Each consumer entry should be a nested object with a unique name with consumer a
94
94
|`message_type`| Used to validate the message type of a message before processing (str or list) |
95
95
|`error_exchange`| The exchange to publish messages that raise `ProcessingException` to (str) |
96
96
|`error_max_retry`| The number of `ProcessingException` raised on a message before dropping it (int) |
97
-
|`influxdb_measurement`|When using InfluxDB, the measurement name for per-message measurements (str) |
97
+
|`schema_uri_format`|Avro schema URI format with `{0}` placeholder for message type. Supports `file://` and `http(s)://` schemes. Requires `rejected[avro]` (str) |
98
98
|`config`| Free-form key-value configuration section for the consumer (obj) |
0 commit comments