From ad1ced3c8da4b5939d1e89466b350d197a638cbd Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:25:06 -0400 Subject: [PATCH] add openweather config --- Jenkinsfile | 13 +++++++------ telegraf/telegraf.conf | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06280a3..014475f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,16 +39,17 @@ pipeline { stage('Start container') { steps { script { - def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') + //#def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') + sh 'docker --context pi502 compose pull telegraf' - if (status_s != 0) { - sh 'docker --context pi502 compose up -d' - sh 'docker --context pi502 compose ps' - } else { + //if (status_s != 0) { + // sh 'docker --context pi502 compose up -d' + // sh 'docker --context pi502 compose ps' + //} else { sh 'docker --context pi502 compose down' sh 'docker --context pi502 compose up -d' sh 'docker --context pi502 compose ps' - } + //} } } diff --git a/telegraf/telegraf.conf b/telegraf/telegraf.conf index 9d7555c..f42a8d3 100644 --- a/telegraf/telegraf.conf +++ b/telegraf/telegraf.conf @@ -37,7 +37,7 @@ # insecure_skip_verify = false # Read flattened metrics from one or more JSON HTTP endpoints -[[inputs.httpjson]] +[[inputs.http]] name = "OpenWeather" servers = [