This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double counting while populating promscale_sql_database_chunks_co…
…unt metric Problem statment: `PromscaleCompressionLow` alert fires regardless of a good compression ratio. Root cause: SQL query which populates `promscale_sql_database_chunks_count` is a sum of the below metrics, 1) Uncompressed Chunks 2) Proxy Chunks which points to Compressed Chunks 3) Compressed Chunks However the total chunk count should be just (1) + (3), because (2) is already pointing to (3) and which leads to double counting. Solution: Fix the SQL query to consider entries which has `compressed_chunk_id` as null and this will be true for both (1) and (3). Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
- Loading branch information
Showing
4 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters