diff --git a/influxdb/startup/influxsetup.sh b/influxdb/startup/influxsetup.sh deleted file mode 100755 index d78f709..0000000 --- a/influxdb/startup/influxsetup.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -#DB_URL=$(cat "$INFLUX_CONFIGS_PATH" | awk '/url/ {print $3}' | head -n 1) -DB_URL="frms-db-1:8086" - -TOKEN=$(influx auth list --user ${DOCKER_INFLUXDB_INIT_USER_ID} --hide-headers | cut -f 3) -ORG=$(influx org list | grep ${DOCKER_INFLUXDB_INIT_ORG_ID} | awk '{print $2}') -# creating starting server YAML -echo -e "server:\n db-url: ${DB_URL}\n db-org: ${ORG}\n db-token: ${TOKEN}" >/configs/server.yaml; - -# creating grafana yaml -influx user create -n grafana -o ${ORG} -GRAFANA_TOKEN=$(influx auth list --user grafana --hide-headers | cut -f 3) -echo -e "apiVersion: 1\n\ndeleteDatasources:\n\ndatasources:\n - name: INFLUXDB\n type: influxdb\n access: proxy\n url: ${DB_URL}\n jsonData:\n httpMode: GET\n httpHeaderName1: 'Authorization'\n secureJsonData:\n httpHeaderValue1: 'Token ${GRAFANA_TOKEN}'" >/grafana/datasources/datasource.yaml diff --git a/influxdb/startup/template.yaml b/influxdb/startup/template.yaml deleted file mode 100644 index d832594..0000000 --- a/influxdb/startup/template.yaml +++ /dev/null @@ -1,6 +0,0 @@ ----- -# ${gen_statement} -server: - db-url: "${db_url}" - db-org: "${db_org}" - db-token: "${db_token}"