Skip to content

Commit

Permalink
add helios config
Browse files Browse the repository at this point in the history
  • Loading branch information
nozik committed Apr 25, 2023
1 parent 5ef82f3 commit b2d115e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Run OpenTelemetry demo"

on:
workflow_dispatch:
schedule:
- cron: "0 */4 * * *" # Run every 4 hours, at :00 sharp.

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run
run: sed -i "s/DEMO_HS_TOKEN/${DEMO_HS_TOKEN}/" './src/otelcollector/otelcol-config.yml' && docker compose build otelcol && docker compose up -d --no-build
env:
DEMO_HS_TOKEN: ${{ secrets.DEMO_HS_TOKEN }}

- name: Sleep for 5 minutes
uses: juliangruber/sleep-action@v1
with:
time: 5m

- name: Stop docker
run: docker compose stop loadgenerator && sleep 30 && docker compose down
7 changes: 6 additions & 1 deletion src/otelcollector/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ exporters:
resource_to_telemetry_conversion:
enabled: true
enable_open_metrics: true
otlphttp:
endpoint: "https://collector.heliosphere.io"
traces_endpoint: "https://collector.heliosphere.io/traces"
headers:
Authorization: "DEMO_HS_TOKEN"

processors:
batch:
Expand All @@ -46,7 +51,7 @@ service:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp, logging, spanmetrics]
exporters: [otlp, logging, spanmetrics, otlphttp]
metrics:
receivers: [otlp, spanmetrics]
processors: [filter, transform, batch]
Expand Down

0 comments on commit b2d115e

Please sign in to comment.