Skip to content

Commit 2036132

Browse files
committed
Add missing config files in examples
1 parent 69d2b97 commit 2036132

File tree

3 files changed

+169
-0
lines changed

3 files changed

+169
-0
lines changed

examples/csv/config/otava.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
tests:
19+
local.sample:
20+
type: csv
21+
file: /data/local_sample.csv
22+
time_column: time
23+
attributes: [commit]
24+
metrics: [metric1, metric2]
25+
csv_options:
26+
delimiter: ","
27+
quotechar: "'"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# External systems connectors configuration:
19+
graphite:
20+
url: ${GRAPHITE_ADDRESS}
21+
22+
grafana:
23+
url: ${GRAFANA_ADDRESS}
24+
user: ${GRAFANA_USER}
25+
password: ${GRAFANA_PASSWORD}
26+
27+
# Define your tests here:
28+
tests:
29+
my-product.test:
30+
type: graphite
31+
prefix: performance-tests.daily.my-product
32+
tags: [perf-test, daily, my-product]
33+
metrics:
34+
throughput:
35+
suffix: client.throughput
36+
direction: 1 # higher is better
37+
scale: 1
38+
response_time:
39+
suffix: client.p50
40+
direction: -1 # lower is better
41+
scale: 1
42+
cpu_usage:
43+
suffix: server.cpu
44+
direction: -1 # lower is better
45+
scale: 1
46+
47+
48+
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# External systems connectors configuration:
19+
postgres:
20+
hostname: ${POSTGRES_HOSTNAME}
21+
port: ${POSTGRES_PORT}
22+
username: ${POSTGRES_USERNAME}
23+
password: ${POSTGRES_PASSWORD}
24+
database: ${POSTGRES_DATABASE}
25+
26+
# Templates define common bits shared between test definitions:
27+
templates:
28+
common:
29+
type: postgres
30+
time_column: commit_ts
31+
attributes: [experiment_id, commit, config_id]
32+
# required for --update-postgres to work
33+
update_statement: |
34+
UPDATE results
35+
SET {metric}_rel_forward_change=%s,
36+
{metric}_rel_backward_change=%s,
37+
{metric}_p_value=%s
38+
WHERE experiment_id = '{experiment_id}' AND config_id = {config_id}
39+
metrics:
40+
process_cumulative_rate_mean:
41+
direction: 1
42+
scale: 1
43+
process_cumulative_rate_stderr:
44+
direction: -1
45+
scale: 1
46+
process_cumulative_rate_diff:
47+
direction: -1
48+
scale: 1
49+
50+
# Define your tests here:
51+
tests:
52+
aggregate_mem:
53+
inherit: [ common ] # avoids repeating metrics definitions and postgres-related config
54+
query: |
55+
SELECT e.commit,
56+
e.commit_ts,
57+
r.process_cumulative_rate_mean,
58+
r.process_cumulative_rate_stderr,
59+
r.process_cumulative_rate_diff,
60+
r.experiment_id,
61+
r.config_id
62+
FROM results r
63+
INNER JOIN configs c ON r.config_id = c.id
64+
INNER JOIN experiments e ON r.experiment_id = e.id
65+
WHERE e.exclude_from_analysis = false AND
66+
e.branch = '${BRANCH}' AND
67+
e.username = 'ci' AND
68+
c.store = 'MEM' AND
69+
c.cache = true AND
70+
c.benchmark = 'aggregate' AND
71+
c.instance_type = 'ec2i3.large'
72+
ORDER BY e.commit_ts ASC;
73+
74+
aggregate_time_rocks:
75+
inherit: [ common ]
76+
query: |
77+
SELECT e.commit,
78+
e.commit_ts,
79+
r.process_cumulative_rate_mean,
80+
r.process_cumulative_rate_stderr,
81+
r.process_cumulative_rate_diff,
82+
r.experiment_id,
83+
r.config_id
84+
FROM results r
85+
INNER JOIN configs c ON r.config_id = c.id
86+
INNER JOIN experiments e ON r.experiment_id = e.id
87+
WHERE e.exclude_from_analysis = false AND
88+
e.branch = '${BRANCH}' AND
89+
e.username = 'ci' AND
90+
c.store = 'TIME_ROCKS' AND
91+
c.cache = true AND
92+
c.benchmark = 'aggregate' AND
93+
c.instance_type = 'ec2i3.large'
94+
ORDER BY e.commit_ts ASC;

0 commit comments

Comments
 (0)