ThanosStoreObjstoreOperationLatencyHigh #
Thanos Store {{$labels.job}} Bucket has a 99th percentile latency of {{$value}} seconds for the bucket operations.
Alert Rule
alert: ThanosStoreObjstoreOperationLatencyHigh
annotations:
description: |-
Thanos Store {{$labels.job}} Bucket has a 99th percentile latency of {{$value}} seconds for the bucket operations.
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/thanos-store/thanosstoreobjstoreoperationlatencyhigh/
summary: Thanos Store Objstore Operation Latency High (instance {{ $labels.instance
}})
expr: (histogram_quantile(0.99, sum by (job, le) (rate(thanos_objstore_bucket_operation_duration_seconds_bucket{job=~".*thanos-store.*"}[5m])))
> 2 and sum by (job) (rate(thanos_objstore_bucket_operation_duration_seconds_count{job=~".*thanos-store.*"}[5m]))
> 0)
for: 10m
labels:
severity: warning
Here is the runbook for the ThanosStoreObjstoreOperationLatencyHigh alert:
Meaning #
The ThanosStoreObjstoreOperationLatencyHigh alert is triggered when the 99th percentile latency of Thanos Store objstore bucket operations exceeds 2 seconds and there are ongoing operations. This alert indicates that the Thanos Store is experiencing high latency when performing objstore bucket operations, which may impact the overall performance and reliability of the system.
Impact #
The high latency of objstore bucket operations can have a significant impact on the system, including:
- Delayed query responses and slower data ingest
- Increased load on the system, leading to potential crashes or failures
- Decreased system reliability and availability
- Potential data loss or corruption
Diagnosis #
To diagnose the root cause of the high latency, follow these steps:
- Check the Thanos Store logs for any errors or warnings related to objstore bucket operations.
- Investigate the current load and resource utilization of the Thanos Store nodes.
- Check the network connectivity and latency between the Thanos Store nodes and the objstore.
- Verify that the objstore is properly configured and functioning correctly.
- Check the objstore bucket operation metrics to identify any patterns or anomalies.
Mitigation #
To mitigate the high latency of objstore bucket operations, follow these steps:
- Scale up the Thanos Store nodes to increase resources and handle the load.
- Optimize the objstore configuration for better performance.
- Implement caching or other optimization techniques to reduce the load on the objstore.
- Check for any software or configuration issues and apply updates or patches as needed.
- Consider implementing a load balancing or queuing mechanism to handle high volumes of objstore bucket operations.
By following these steps, you should be able to identify and resolve the root cause of the high latency and restore normal operation of the Thanos Store.