Skip to content
Snippets Groups Projects
Commit 88364d10 authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-1918' into 'main'

L2SS-1918: Run garibaldi on central instance daily

Closes L2SS-1918

See merge request !13
parents a51dfabf 780090bb
No related branches found
No related tags found
1 merge request!13L2SS-1918: Run garibaldi on central instance daily
Pipeline #94535 passed
registry: registry:
astron: astron:
url: git.astron.nl:5000/lofar2.0/tango url: git.astron.nl:5000
monitoring: monitoring:
prometheus: prometheus:
......
...@@ -74,7 +74,7 @@ job "grafana" { ...@@ -74,7 +74,7 @@ job "grafana" {
policies = ["default"] policies = ["default"]
} }
config { config {
image = "git.astron.nl:5000/lofar2.0/grafana-station-dashboards:[[.image_tag]]" image = "[[.registry.astron.url]]/lofar2.0/grafana-station-dashboards:[[.image_tag]]"
mount { mount {
type = "bind" type = "bind"
source = "local/datasources/" source = "local/datasources/"
...@@ -424,5 +424,48 @@ EOH ...@@ -424,5 +424,48 @@ EOH
} }
} }
} }
}
job "daily-backup-grafana-to-s3" {
datacenters = ["nl-north"]
type = "batch"
namespace = "operations"
periodic {
cron = "@daily"
}
group "garibaldi" {
vault {
policies = ["default"]
}
task "garibaldi" {
driver = "docker"
config {
image = "[[.registry.astron.url]]/grafana/garibaldi:latest"
}
env {
MINIO_HOSTNAME = "https://s3.lofar.net:443"
MINIO_ACCESS_KEY = "minioadmin"
MINIO_SECRET_KEY = "minioadmin"
MINIO_BUCKET = "grafana-backup"
GRAFANA_URL = "https://monitoring.lofar.net:443"
}
template {
env = true
destination = "secrets/file.env"
data = <<EOH
GRAFANA_TOKEN = "{{with secret "kv-v2/data/grafana/garabaldi"}}{{.Data.data.token}}{{end}}"
EOH
}
resources {
cpu = 2500
memory = 512
}
}
}
} }
...@@ -34,7 +34,7 @@ job "metrics" { ...@@ -34,7 +34,7 @@ job "metrics" {
driver = "docker" driver = "docker"
config { config {
image = "[[.registry.astron.url]]/prometheus:[[.monitoring.prometheus.version]]" image = "[[.registry.astron.url]]/lofar2.0/tango/prometheus:[[.monitoring.prometheus.version]]"
args = [ args = [
"--config.file=/local/prometheus.yaml", "--config.file=/local/prometheus.yaml",
"--web.enable-remote-write-receiver", "--web.enable-remote-write-receiver",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment