Skip to content

Commit

Permalink
Add write-ahead log settings for prometheus destinations (#948)
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall authored Nov 26, 2024
1 parent 6e035ae commit af7eaea
Show file tree
Hide file tree
Showing 73 changed files with 618 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions charts/k8s-monitoring/destinations/prometheus-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,20 @@ queueConfig:
# @section -- Queue Configuration
sampleAgeLimit: 0s

# Write-Ahead Log (WAL) settings. Only applies when protocol is "remote_write"
writeAheadLog:
# -- How frequently to clean up the write-ahead log.
# @section -- Write-Ahead Log
truncateFrequency: 2h

# -- Minimum time to keep data in the write-ahead log before it can be removed.
# @section -- Write-Ahead Log
minKeepaliveTime: 5m

# -- Maximum time to keep data in the write-ahead log before removing it.
# @section -- Write-Ahead Log
maxKeepaliveTime: 8h

# -- Settings for converting OpenTelemetry ecosystem metrics to Prometheus ecosystem metrics.
# @section -- OpenTelemetry Conversion
openTelemetryConversion:
Expand Down
8 changes: 8 additions & 0 deletions charts/k8s-monitoring/docs/destinations/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ This defines the options for defining a destination for metrics that use the Pro
| tls.keyFile | string | `""` | The client key for the server (as a path to a file). |
| tls.keyFrom | string | `""` | Raw config for accessing the client key. |

### Write-Ahead Log

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| writeAheadLog.maxKeepaliveTime | string | `"8h"` | Maximum time to keep data in the write-ahead log before removing it. |
| writeAheadLog.minKeepaliveTime | string | `"5m"` | Minimum time to keep data in the write-ahead log before it can be removed. |
| writeAheadLog.truncateFrequency | string | `"2h"` | How frequently to clean up the write-ahead log. |

## Examples

### Local Prometheus
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af7eaea

Please sign in to comment.