add monitoring for finance app backend [ci skip]

This commit is contained in:
viktorbarzin 2023-04-02 19:32:25 +01:00
parent a7107da014
commit fee405718f

View file

@ -68,6 +68,11 @@ resource "kubernetes_deployment" "finance_app" {
labels = {
app = "finance-app"
}
annotations = {
"prometheus.io/scrape" = "true"
"prometheus.io/path" = "/metrics"
"prometheus.io/port" = 5000
}
}
spec {
replicas = 1
@ -84,6 +89,11 @@ resource "kubernetes_deployment" "finance_app" {
labels = {
app = "finance-app"
}
annotations = {
"prometheus.io/scrape" = "true"
"prometheus.io/path" = "/metrics"
"prometheus.io/port" = 5000
}
}
spec {
container {