Enable Grafana metrics.
This commit is contained in:
@@ -20,6 +20,8 @@ job "grafana" {
|
|||||||
env {
|
env {
|
||||||
GF_AUTH_BASIC_ENABLED = "false"
|
GF_AUTH_BASIC_ENABLED = "false"
|
||||||
GF_SERVER_HTTP_PORT = "${NOMAD_PORT_http}"
|
GF_SERVER_HTTP_PORT = "${NOMAD_PORT_http}"
|
||||||
|
GF_METRICS_ENABLED = "true"
|
||||||
|
GF_METRICS_DISABLE_TOTAL_STATS = "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
@@ -28,6 +30,7 @@ job "grafana" {
|
|||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.grafana.entryPoints=websecure",
|
"traefik.http.routers.grafana.entryPoints=websecure",
|
||||||
|
"metrics",
|
||||||
]
|
]
|
||||||
check {
|
check {
|
||||||
type = "http"
|
type = "http"
|
||||||
|
|||||||
Reference in New Issue
Block a user