Skip to content
Snippets Groups Projects
Commit 9c9bd2a9 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix scraping of s3 and sync-IERS metrics

parent 33f82eec
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ job "device-servers" {
image = "minio/mc:latest"
entrypoint = [""]
command = "/bin/bash"
args = ["-c", "mc alias set object-storage http://s3.service.consul:9000 [[.object_storage.user.name]] [[.object_storage.user.pass]] && mc mirror --preserve --watch object-storage/iers/ /opt/IERS/" ]
args = ["-c", "mc alias set object-storage http://s3.service.consul:9000 [[.object_storage.user.name]] [[.object_storage.user.pass]] && mc mirror --preserve --watch object-storage/iers/ /opt/IERS/ --monitoring-address 0.0.0.0:8081" ]
}
resources {
......
......@@ -16,15 +16,10 @@ job "object-storage" {
}
service {
tags = ["scrape"]
name = "s3"
port = "9000"
task = "minio"
address_mode="alloc"
meta {
metrics_address = "s3.service.consul:9598"
}
}
service {
name = "s3-console"
......@@ -32,6 +27,13 @@ job "object-storage" {
task = "minio"
address_mode="alloc"
}
service {
tags = ["scrape"]
name = "s3-metrics"
port = "9598"
task = "minio"
address_mode="alloc"
}
task "minio" {
driver = "docker"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment