ThanosCompactorHalted #
Thanos Compact {{$labels.job}} has failed to run and now is halted.
Alert Rule
alert: ThanosCompactorHalted
annotations:
description: |-
Thanos Compact {{$labels.job}} has failed to run and now is halted.
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/thanos-compactor/thanoscompactorhalted/
summary: Thanos Compactor Halted (instance {{ $labels.instance }})
expr: thanos_compact_halted{job=~".*thanos-compact.*"} == 1
for: 5m
labels:
severity: warning
Here is a runbook for the ThanosCompactorHalted alert:
Meaning #
The ThanosCompactorHalted alert indicates that the Thanos compactor has failed to run and is currently halted. This means that the compactor is not processing data and may lead to data inconsistencies and potential data loss.
Impact #
The impact of this alert is that the Thanos compactor is not functioning as expected, which can lead to:
- Data inconsistencies and potential data loss
- Increased storage usage due to unprocessed data
- Potential performance degradation of dependent systems
Diagnosis #
To diagnose the issue, follow these steps:
- Check the Thanos compactor logs for errors or exceptions that may indicate the cause of the halt.
- Verify that the Thanos compactor is properly configured and that all required dependencies are available.
- Check the system resources (e.g., CPU, memory, disk space) to ensure they are not causing the compactor to fail.
- Review the Thanos compactor metrics to identify any trends or patterns that may indicate the cause of the halt.
Mitigation #
To mitigate the issue, follow these steps:
- Restart the Thanos compactor to attempt to recover from the halted state.
- Investigate and resolve any underlying issues identified during diagnosis, such as configuration errors or system resource constraints.
- Verify that the compactor is properly configured and all required dependencies are available.
- Monitor the Thanos compactor metrics to ensure it is functioning correctly and processing data as expected.
Note: If the issue persists, consider seeking assistance from the Thanos community or a qualified expert.