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

Added Git timings per action per day

parent d662365b
No related branches found
No related tags found
No related merge requests found
CREATE CONTINUOUS QUERY grape_git_timings_per_action_per_day ON $DATABASE
BEGIN
SELECT count("duration") AS "count",
mean("duration") AS duration_mean,
percentile("duration", 95) AS duration_95th,
percentile("duration", 99) AS duration_99th
INTO downsampled.grape_git_timings_per_action_per_day
FROM "$DEFAULT_RETENTION_POLICY".rails_method_calls
WHERE (action =~ /.+/ AND action !~ /^Grape#/)
AND method =~ /^(Rugged|Gitlab::Git)/
GROUP BY time(1d), action
END
CREATE CONTINUOUS QUERY rails_git_timings_per_action_per_day ON $DATABASE
BEGIN
SELECT count("duration") AS "count",
mean("duration") AS duration_mean,
percentile("duration", 95) AS duration_95th,
percentile("duration", 99) AS duration_99th
INTO downsampled.rails_git_timings_per_action_per_day
FROM "$DEFAULT_RETENTION_POLICY".rails_method_calls
WHERE (action =~ /.+/ AND action !~ /^Grape#/)
AND method =~ /^(Rugged|Gitlab::Git)/
GROUP BY time(1d), action
END
CREATE CONTINUOUS QUERY sidekiq_git_timings_per_action_per_day ON $DATABASE
BEGIN
SELECT count("duration") AS "count",
mean("duration") AS duration_mean,
percentile("duration", 95) AS duration_95th,
percentile("duration", 99) AS duration_99th
INTO downsampled.sidekiq_git_timings_per_action_per_day
FROM "$DEFAULT_RETENTION_POLICY".sidekiq_method_calls
WHERE (action =~ /.+/ AND action !~ /^Grape#/)
AND method =~ /^(Rugged|Gitlab::Git)/
GROUP BY time(1d), action
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