Add rewrite rule to Prometheus and Grafana for /k8s/clusters

pull/1324/head
Arvind Iyengar 2021-07-06 09:15:31 -07:00
parent 40cc26ecc0
commit b93fe34e57
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
2 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,9 @@ data:
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
expires 90d;
}
rewrite ^/k8s/clusters/.*/proxy(.*) /$1 break;
}
}
}

View File

@ -61,6 +61,9 @@ data:
if ($request_filename ~ .*\.(?:js|css|jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$) {
expires 90d;
}
rewrite ^/k8s/clusters/.*/proxy(.*) /$1 break;
}
}
}