35 lines
612 B
HCL
35 lines
612 B
HCL
Kind = "service-intentions"
|
|
Name = "monitoring-prometheus"
|
|
Sources = [
|
|
{
|
|
Name = "traefik"
|
|
Permissions = [
|
|
{
|
|
Action = "allow"
|
|
HTTP {
|
|
Methods = ["GET", "HEAD", "POST"]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
Name = "monitoring-grafana"
|
|
Permissions = [
|
|
{
|
|
# Deny access to the admin API from Grafana
|
|
Action = "deny"
|
|
HTTP {
|
|
PathPrefix = "/api/v1/admin"
|
|
}
|
|
},
|
|
{
|
|
Action = "allow"
|
|
HTTP {
|
|
PathPrefix = "/api/v1"
|
|
Methods = ["GET", "HEAD", "POST", "PUT"]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|