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
Branches
Tags v0.33.1
No related merge requests found
...@@ -49,7 +49,7 @@ job "device-servers" { ...@@ -49,7 +49,7 @@ job "device-servers" {
image = "minio/mc:latest" image = "minio/mc:latest"
entrypoint = [""] entrypoint = [""]
command = "/bin/bash" 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 { resources {
......
...@@ -16,15 +16,10 @@ job "object-storage" { ...@@ -16,15 +16,10 @@ job "object-storage" {
} }
service { service {
tags = ["scrape"]
name = "s3" name = "s3"
port = "9000" port = "9000"
task = "minio" task = "minio"
address_mode="alloc" address_mode="alloc"
meta {
metrics_address = "s3.service.consul:9598"
}
} }
service { service {
name = "s3-console" name = "s3-console"
...@@ -32,6 +27,13 @@ job "object-storage" { ...@@ -32,6 +27,13 @@ job "object-storage" {
task = "minio" task = "minio"
address_mode="alloc" address_mode="alloc"
} }
service {
tags = ["scrape"]
name = "s3-metrics"
port = "9598"
task = "minio"
address_mode="alloc"
}
task "minio" { task "minio" {
driver = "docker" driver = "docker"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment