add: prometheus

This commit is contained in:
Schneider Roland
2024-10-25 16:13:42 +02:00
parent 4abd64dbc9
commit 27d74362d3
4 changed files with 64 additions and 0 deletions

26
prometheus/jenkins/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,26 @@
pipeline {
agent any
stages {
stage('Git pull && docker compose restart') {
steps {
sshPublisher(publishers: [sshPublisherDesc(configName: 'infra.1', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''cd /home/rschneider/infra
git pull
cd /home/rschneider/infra/prometheus/docker-compose/prometheus
docker compose down
docker compose up -d
''', execTimeout: 120000,
flatten: false,
makeEmptyDirs: false,
noDefaultExcludes: false,
patternSeparator: '[, ]+',
remoteDirectory: '',
remoteDirectorySDF: false,
removePrefix: '', sourceFiles: '')],
usePromotionTimestamp: false,
useWorkspaceInPromotion: false,
verbose: true)])
}
}
}
}