[ci skip] add caretta, goflow2, and prometheus scrape targets to monitoring module

This commit is contained in:
Viktor Barzin 2026-02-28 18:30:20 +00:00
parent b378f30430
commit e8997ec430
3 changed files with 518 additions and 0 deletions

View file

@ -18,6 +18,27 @@ resource "helm_release" "caretta" {
}
}
resource "kubernetes_service" "caretta_metrics" {
metadata {
name = "caretta-metrics"
namespace = kubernetes_namespace.monitoring.metadata[0].name
labels = {
app = "caretta"
}
}
spec {
selector = {
app = "caretta"
}
port {
name = "metrics"
port = 7117
target_port = 7117
protocol = "TCP"
}
}
}
resource "kubernetes_config_map" "caretta_grafana_dashboard" {
metadata {
name = "caretta-grafana-dashboard"