Created
March 11, 2019 16:17
-
-
Save asrivascrealytee/00856a03518e665754ed87b8224cc8ea to your computer and use it in GitHub Desktop.
Grafana+loki+promtail nomad example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "grafana" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "grafana" { | |
count = 1 | |
restart { | |
attempts = 10 | |
interval = "5m" | |
delay = "25s" | |
mode = "delay" | |
} | |
task "grafana" { | |
driver = "docker" | |
config { | |
image = "grafana/grafana" | |
port_map { | |
grafana_port = 3000 | |
} | |
} | |
resources { | |
cpu = 50 | |
memory = 32 | |
network { | |
mbits = 1 | |
port "grafana_port"{} | |
} | |
} | |
service { | |
name = "graphana" | |
port = "grafana_port" | |
check { | |
type = "http" | |
path = "/health" | |
interval = "10s" | |
timeout = "2s" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! :)