Skip to content
Snippets Groups Projects
Verified Commit bd9caafa authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Added queries for tracking deployments

This ensures the deployments are copied into "forever.deployments" which
has no expiration time (unlike "default" which expires after one hour).
parent 092d3369
No related branches found
No related tags found
1 merge request!2Added queries for tracking deployments
Loading
Loading
@@ -28,6 +28,10 @@ task :policies do
unless policy_names.include?('downsampled')
CLIENT.create_retention_policy('downsampled', db, '7d', 1)
end
unless policy_names.include?('forever')
CLIENT.create_retention_policy('forever', db, 'INF', 1)
end
end
 
desc 'Updates the continuous queries in the database'
Loading
Loading
CREATE CONTINUOUS QUERY deployments on $DATABASE
RESAMPLE EVERY 30m FOR 1h
BEGIN
SELECT *
INTO forever.deployments
FROM "default".deployments
END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment