Integrate telegraf into our CI

This commit is contained in:
Tamo 2021-12-13 18:50:35 +01:00
parent 11a056d116
commit 6a1216bd51
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
5 changed files with 36 additions and 12 deletions

View File

@ -1,10 +1,12 @@
name: Benchmarks indexing (cron)
name: Benchmarks indexing (push)
on:
schedule:
- cron: "30 0 * * FRI" # every friday at 00:30
push:
branches:
- main
env:
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
BENCH_NAME: "indexing"
jobs:
@ -61,6 +63,10 @@ jobs:
source: ${{ steps.file.outputs.basename }}.json
out_dir: critcmp_results
# Upload benchmarks to influxdb
- name: Upload ${{ steps.file.outputs.basename }}.json to influxDB
run: telegraf --config https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/telegrafs/08b52e34a370b000 --once --debug
# Helper
- name: 'README: compare with another benchmark'
run: |

View File

@ -1,11 +1,13 @@
name: Benchmarks search geo (cron)
name: Benchmarks search geo (push)
on:
schedule:
- cron: "30 18 * * FRI" # every friday at 18:30
push:
branches:
- main
env:
BENCH_NAME: "search_geo"
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
jobs:
benchmarks:
@ -61,6 +63,10 @@ jobs:
source: ${{ steps.file.outputs.basename }}.json
out_dir: critcmp_results
# Upload benchmarks to influxdb
- name: Upload ${{ steps.file.outputs.basename }}.json to influxDB
run: telegraf --config https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/telegrafs/08b52e34a370b000 --once --debug
# Helper
- name: 'README: compare with another benchmark'
run: |

View File

@ -1,11 +1,13 @@
name: Benchmarks search songs (cron)
name: Benchmarks search songs (push)
on:
schedule:
- cron: "30 08 * * FRI" # every friday at 08:30
push:
branches:
- main
env:
BENCH_NAME: "search_songs"
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
jobs:
benchmarks:
@ -61,6 +63,10 @@ jobs:
source: ${{ steps.file.outputs.basename }}.json
out_dir: critcmp_results
# Upload benchmarks to influxdb
- name: Upload ${{ steps.file.outputs.basename }}.json to influxDB
run: telegraf --config https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/telegrafs/08b52e34a370b000 --once --debug
# Helper
- name: 'README: compare with another benchmark'
run: |

View File

@ -1,11 +1,13 @@
name: Benchmarks search wikipedia articles (cron)
name: Benchmarks search wikipedia articles (push)
on:
schedule:
- cron: "30 16 * * FRI" # every friday at 16:30 (its snacky snack-time!)
push:
branches:
- main
env:
BENCH_NAME: "search_wiki"
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
jobs:
benchmarks:
@ -61,6 +63,10 @@ jobs:
source: ${{ steps.file.outputs.basename }}.json
out_dir: critcmp_results
# Upload benchmarks to influxdb
- name: Upload ${{ steps.file.outputs.basename }}.json to influxDB
run: telegraf --config https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/telegrafs/08b52e34a370b000 --once --debug
# Helper
- name: 'README: compare with another benchmark'
run: |