add monitoring for finance app backend [ci skip]
This commit is contained in:
parent
a7107da014
commit
fee405718f
1 changed files with 10 additions and 0 deletions
|
|
@ -68,6 +68,11 @@ resource "kubernetes_deployment" "finance_app" {
|
||||||
labels = {
|
labels = {
|
||||||
app = "finance-app"
|
app = "finance-app"
|
||||||
}
|
}
|
||||||
|
annotations = {
|
||||||
|
"prometheus.io/scrape" = "true"
|
||||||
|
"prometheus.io/path" = "/metrics"
|
||||||
|
"prometheus.io/port" = 5000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
replicas = 1
|
||||||
|
|
@ -84,6 +89,11 @@ resource "kubernetes_deployment" "finance_app" {
|
||||||
labels = {
|
labels = {
|
||||||
app = "finance-app"
|
app = "finance-app"
|
||||||
}
|
}
|
||||||
|
annotations = {
|
||||||
|
"prometheus.io/scrape" = "true"
|
||||||
|
"prometheus.io/path" = "/metrics"
|
||||||
|
"prometheus.io/port" = 5000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
container {
|
container {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue