-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📝 Ajout fichier d'exemple police de rétention
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ALTER RETENTION POLICY autogen ON prometheus DURATION 1d SHARD DURATION 1h | ||
|
||
CREATE RETENTION POLICY "1m" ON prometheus DURATION 15d REPLICATION 1 | ||
CREATE CONTINUOUS QUERY "1m" ON prometheus BEGIN SELECT max(value), mean(value), min(value), sum(value) INTO prometheus."1m".:MEASUREMENT FROM prometheus../.*/ GROUP BY time(1m), * END | ||
|
||
CREATE RETENTION POLICY "5m" ON prometheus DURATION 63d REPLICATION 1 | ||
CREATE CONTINUOUS QUERY "5m" ON prometheus BEGIN SELECT max(value), mean(value), min(value), sum(value) INTO prometheus."5m".:MEASUREMENT FROM prometheus../.*/ GROUP BY time(5m), * END | ||
|
||
CREATE RETENTION POLICY "1h" ON prometheus DURATION 455d REPLICATION 1 | ||
CREATE CONTINUOUS QUERY "1h" ON prometheus BEGIN SELECT max(value), mean(value), min(value), sum(value) INTO prometheus."1h".:MEASUREMENT FROM prometheus../.*/ GROUP BY time(1h), * END |