We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1305cb8 + 9dae9cc commit ddcbedfCopy full SHA for ddcbedf
1 file changed
telegraf/rootfs/start-telegraf
@@ -1,6 +1,11 @@
1
#!/bin/sh
2
set -e
3
4
+if [ -n $DEIS_NSQD_SERVICE_HOST ]; then
5
+ echo "Creating topic with URL: http://$DEIS_NSQD_SERVICE_HOST:$DEIS_NSQD_SERVICE_PORT/topic/create?topic=$NSQ_CONSUMER_TOPIC"
6
+ curl -s -X POST http://$DEIS_NSQD_SERVICE_HOST:$DEIS_NSQD_SERVICE_PORT/topic/create?topic=$NSQ_CONSUMER_TOPIC
7
+fi
8
+
9
export PROMETHEUS_BEARER_TOKEN=/var/run/secrets/kubernetes.io/serviceaccount/token
10
if [ -f $PROMETHEUS_BEARER_TOKEN ]; then
11
export TOKEN=$(cat $PROMETHEUS_BEARER_TOKEN)
0 commit comments