Skip to content

Commit

Permalink
Convert config properties to list-table in Prometheus documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Apr 22, 2024
1 parent 8c776bd commit 2a2ef11
Showing 1 changed file with 42 additions and 12 deletions.
54 changes: 42 additions & 12 deletions docs/src/main/sphinx/connector/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,48 @@ prometheus.read-timeout=10s

The following configuration properties are available:

| Property name | Description |
| ------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `prometheus.uri` | Where to find Prometheus coordinator host |
| `prometheus.query.chunk.size.duration` | The duration of each query to Prometheus |
| `prometheus.max.query.range.duration` | Width of overall query to Prometheus, will be divided into query-chunk-size-duration queries |
| `prometheus.cache.ttl` | How long values from this config file are cached |
| `prometheus.auth.user` | Username for basic authentication |
| `prometheus.auth.password` | Password for basic authentication |
| `prometheus.auth.http.header.name` | Name of the header to use for authorization |
| `prometheus.bearer.token.file` | File holding bearer token if needed for access to Prometheus |
| `prometheus.read-timeout` | How much time a query to Prometheus has before timing out |
| `prometheus.case-insensitive-name-matching` | Match Prometheus metric names case insensitively. Defaults to `false` |
:::{list-table} Prometheus configuration properties
:widths: 30, 55, 15
:header-rows: 1

* - Property name
- Description
- Default
* - `prometheus.uri`
- Where to find Prometheus coordinator host.
- `http://localhost:9090`
* - `prometheus.query.chunk.size.duration`
- The duration of each query to Prometheus.
- `1d`
* - `prometheus.max.query.range.duration`
- Width of overall query to Prometheus, will be divided into
`prometheus.query.chunk.size.duration` queries.
- `21d`
* - `prometheus.cache.ttl`
- How long values from this config file are cached.
- `30s`
* - `prometheus.read-timeout`
- How much time a query to Prometheus has before timing out.
- `10s`
* - `prometheus.auth.user`
- Username for basic authentication.
-
* - `prometheus.auth.password`
- Password for basic authentication.
-
* - `prometheus.auth.http.header.name`
- Name of the header to use for authorization.
- `Authorization`
* - `prometheus.bearer.token.file`
- File holding bearer token if needed for access to Prometheus.
-
* - `prometheus.read-timeout`
- How much time a query to Prometheus has before timing out.
- `10s`
* - `prometheus.case-insensitive-name-matching`
- Match Prometheus metric names case insensitively.
- `false`
:::

## Not exhausting your Trino available heap

Expand Down

0 comments on commit 2a2ef11

Please sign in to comment.