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

Merge branch 'deployment-tracking' into 'master'

Added queries for tracking deployments

This is for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5320

See merge request !2
parents f58a7779 bd9caafa
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