Skip to content

Commit

Permalink
Refactor monitoring.tf to update Grafana datasources and Prometheus t…
Browse files Browse the repository at this point in the history
…arget
  • Loading branch information
adamlahbib committed Nov 18, 2024
1 parent 5433088 commit 5078741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "kubernetes_config_map" "grafana_datasources" {
}
}
data = {
datasources = yamlencode({
"ds.yaml" = yamlencode({
apiVersion = 1
datasources = [
{
Expand Down Expand Up @@ -124,7 +124,7 @@ resource "helm_release" "prometheus_operator" {
scrape_interval = "60s"
static_configs = [
{
targets = ["crowdsec-service.default.svc.cluster.local:6060"]
targets = ["crowdsec-service.crowdsec.svc.cluster.local:6060"]
}
]
}
Expand Down

0 comments on commit 5078741

Please sign in to comment.