add openweather config

This commit is contained in:
Kameron Kenny 2024-06-26 14:25:06 -04:00
parent 410492dba7
commit ad1ced3c8d
No known key found for this signature in database
GPG Key ID: E5006629839D2276
2 changed files with 8 additions and 7 deletions

13
Jenkinsfile vendored
View File

@ -39,16 +39,17 @@ pipeline {
stage('Start container') { stage('Start container') {
steps { steps {
script { 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) { //if (status_s != 0) {
sh 'docker --context pi502 compose up -d' // sh 'docker --context pi502 compose up -d'
sh 'docker --context pi502 compose ps' // sh 'docker --context pi502 compose ps'
} else { //} else {
sh 'docker --context pi502 compose down' sh 'docker --context pi502 compose down'
sh 'docker --context pi502 compose up -d' sh 'docker --context pi502 compose up -d'
sh 'docker --context pi502 compose ps' sh 'docker --context pi502 compose ps'
} //}
} }
} }

View File

@ -37,7 +37,7 @@
# insecure_skip_verify = false # insecure_skip_verify = false
# Read flattened metrics from one or more JSON HTTP endpoints # Read flattened metrics from one or more JSON HTTP endpoints
[[inputs.httpjson]] [[inputs.http]]
name = "OpenWeather" name = "OpenWeather"
servers = [ servers = [