Skip to content

Commit

Permalink
Merge pull request #19 from mohdazaruddin/patch-1
Browse files Browse the repository at this point in the history
Fix bug with TELEGRAF_CONFIG_PATH env variable
  • Loading branch information
smatochkin committed Feb 27, 2024
2 parents c72441e + df20875 commit e31d0fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2017 Comcast Cable Communications Management, LLC
# Copyright 2024 Comcast Cable Communications Management, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,11 +17,10 @@
PATH="$PWD/bin:$PATH"

TELEGRAF_CONFIG_PATH=${TELEGRAF_CONFIG_PATH:-telegraf.conf}
export TELEGRAF_CONFIG_PATH

TELEGRAF_CONFIG_DIRECTORY=${TELEGRAF_CONFIG_DIRECTORY:-conf}

config-influxdb-output.sh
config-global-tags.sh

exec telegraf -config-directory "$TELEGRAF_CONFIG_DIRECTORY"
exec telegraf -config-directory "$TELEGRAF_CONFIG_DIRECTORY" --config "$TELEGRAF_CONFIG_PATH"

0 comments on commit e31d0fb

Please sign in to comment.