Add a FAQ page for the monitoring search
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
79a92bb2f3
commit
2361325be6
4 changed files with 102 additions and 6 deletions
|
@ -112,3 +112,27 @@ ALTER TABLE user_messages ADD CO
|
|||
|
||||
ALTER TABLE package_messages DROP CONSTRAINT package_messages_msg_fkey;
|
||||
ALTER TABLE package_messages ADD CONSTRAINT package_messages_msg_fkey FOREIGN KEY (msg) REFERENCES messages2(id);
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE messages_010g , messages_020g, messages_030g, messages_040g, messages_050g,
|
||||
messages_060g, messages_070g, messages_080g, messages_090g, messages_100g,
|
||||
messages_110g, messages_120g, messages_130g, messages_140g, messages_150g,
|
||||
messages_160g, messages_170g, messages_180g, messages_190g, messages_200g,
|
||||
messages_210g, messages_220g
|
||||
|
||||
|
||||
-- 1. Dropping the original primary key
|
||||
ALTER TABLE messages3 DROP CONSTRAINT messages3_pkey;
|
||||
|
||||
-- 2. Renaming existing index for another_id (optional)
|
||||
ALTER INDEX uniq_1483a5e93414710b RENAME TO users_pkey
|
||||
|
||||
-- 3. Creating new primary key using existing index for another_id
|
||||
ALTER TABLE messages3 ADD PRIMARY KEY USING INDEX id
|
||||
|
||||
-- 4. Creating index for old id column (optional)
|
||||
CREATE UNIQUE INDEX messages3_idx_id ON messages3 (id)
|
||||
|
||||
-- 5. You can drop the original sequence generator if you won't need it
|
||||
DROP SEQUENCE users_id_seq
|
||||
|
|
|
@ -222,9 +222,7 @@ class TestAPI:
|
|||
|
||||
# time per requests mean (avg)
|
||||
if self.pass_requests != 0 or self.fail_requests != 0:
|
||||
divided_by = self.pass_requests
|
||||
if self.pass_requests == 0:
|
||||
divided_by = self.fail_requests
|
||||
divided_by = self.pass_requests or self.fail_requests
|
||||
self.tpr_mean = self.sum_response_time / divided_by
|
||||
# requests per second
|
||||
if self.start_time == 0:
|
||||
|
@ -341,10 +339,10 @@ def main():
|
|||
print("Tests started at %s." % time.asctime())
|
||||
|
||||
for env_name, base_url in [
|
||||
("datagrepper-timescalebd/aws", "http://datagrepper-timescale.arc.fedorainfracloud.org/datagrepper"),
|
||||
("datagrepper-test/aws", "http://datagrepper-test.arc.fedorainfracloud.org/datagrepper"),
|
||||
# ("datagrepper-timescalebd/aws", "http://datagrepper-timescale.arc.fedorainfracloud.org/datagrepper"),
|
||||
# ("datagrepper-test/aws", "http://datagrepper-test.arc.fedorainfracloud.org/datagrepper"),
|
||||
("datagrepper-prod/aws", "http://datagrepper-adam.arc.fedorainfracloud.org/datagrepper"),
|
||||
("datagrepper-prod/openshift", "https://datagrepper-monitor-dashboard.app.os.fedoraproject.org"),
|
||||
# ("datagrepper-prod/openshift", "https://datagrepper-monitor-dashboard.app.os.fedoraproject.org"),
|
||||
]:
|
||||
for name in [
|
||||
"test_filter_by_topic",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue