Block metrics from Traefik, small cleanup
This commit is contained in:
parent
1337ef7caf
commit
8ca4189c93
|
@ -4,6 +4,12 @@ Sources = [
|
||||||
{
|
{
|
||||||
Name = "[[ (merge .miniflux .).traefik.instance ]][[ .consul.suffix ]]"
|
Name = "[[ (merge .miniflux .).traefik.instance ]][[ .consul.suffix ]]"
|
||||||
Permissions = [
|
Permissions = [
|
||||||
|
{
|
||||||
|
Action = "deny"
|
||||||
|
HTTP {
|
||||||
|
PathPrefix = "/metrics"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Action = "allow"
|
Action = "allow"
|
||||||
HTTP {
|
HTTP {
|
||||||
|
|
|
@ -4,6 +4,12 @@ Sources = [
|
||||||
{
|
{
|
||||||
Name = "traefik"
|
Name = "traefik"
|
||||||
Permissions = [
|
Permissions = [
|
||||||
|
{
|
||||||
|
Action = "deny"
|
||||||
|
HTTP {
|
||||||
|
PathPrefix = "/metrics"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Action = "allow"
|
Action = "allow"
|
||||||
HTTP {
|
HTTP {
|
||||||
|
|
|
@ -21,7 +21,11 @@ job "miniflux" {
|
||||||
name = "miniflux"
|
name = "miniflux"
|
||||||
port = 8085
|
port = 8085
|
||||||
|
|
||||||
|
meta {
|
||||||
|
alloc = "${NOMAD_ALLOC_INDEX}"
|
||||||
|
job = "${NOMAD_JOB_NAME}"
|
||||||
|
namespace = "${NOMAD_NAMESPACE}"
|
||||||
|
}
|
||||||
|
|
||||||
connect {
|
connect {
|
||||||
sidecar_service {
|
sidecar_service {
|
||||||
|
@ -146,6 +150,8 @@ _EOT
|
||||||
env = true
|
env = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Use a template block instead of env {} so we can fetch values from vault
|
# Use a template block instead of env {} so we can fetch values from vault
|
||||||
template {
|
template {
|
||||||
data = <<_EOT
|
data = <<_EOT
|
||||||
|
|
|
@ -23,7 +23,7 @@ job "[[ .instance ]]" {
|
||||||
name = "[[ .instance ]][[ .consul.suffix ]]"
|
name = "[[ .instance ]][[ .consul.suffix ]]"
|
||||||
port = 8085
|
port = 8085
|
||||||
|
|
||||||
[[ template "common/prometheus_meta" $c ]]
|
[[ template "common/service_meta" $c ]]
|
||||||
[[ template "common/connect" $c ]]
|
[[ template "common/connect" $c ]]
|
||||||
|
|
||||||
check {
|
check {
|
||||||
|
|
Loading…
Reference in New Issue