Skip to content

Commit

Permalink
Merge pull request #104 from SumoLogic/add-entrypoint-script
Browse files Browse the repository at this point in the history
Add wrapper script for otelcol-sumo
  • Loading branch information
echlebek authored Aug 14, 2024
2 parents 32f30dd + c43c023 commit fe85e0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/otelcol-sumo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

if [ -f /etc/otelcol-sumo/sumologic-remote.yaml ]; then
exec /usr/local/bin/otelcol-sumo --remote-config opamp:/etc/otelcol-sumo/sumologic-remote.yaml
else
exec /usr/local/bin/otelcol-sumo --config /etc/otelcol-sumo/sumologic.yaml --config "glob:/etc/otelcol-sumo/conf.d/*.yaml"
fi

0 comments on commit fe85e0f

Please sign in to comment.