modified: services/monitoring/deploy/alloy/kube-scraper/helm-values.yaml
This commit is contained in:
@@ -37,6 +37,15 @@ alloy:
|
||||
role = "endpoint"
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// Metrics: Prometheus Remote Write (CORREÇÃO: Bloco adicionado)
|
||||
// ============================================
|
||||
prometheus.remote_write "prometheus_srv" {
|
||||
endpoint {
|
||||
url = env("PROMETHEUS_URL")
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// Logs: Loki config
|
||||
// ============================================
|
||||
@@ -192,12 +201,12 @@ alloy:
|
||||
// ===============================================================================
|
||||
// Scrape Kubernetes pods containers metrics / cAdvisor
|
||||
// Requirements:
|
||||
// - discovery.relabel - kube_pods_metrics (cAdviser)
|
||||
// - discovery.relabel - kube_node_metrics
|
||||
// ===============================================================================
|
||||
|
||||
prometheus.scrape "cadvisor" {
|
||||
job_name = "integrations/kubernetes/cadvisor"
|
||||
targets = discovery.relabel.kube_pods_metrics.output
|
||||
targets = discovery.relabel.kube_node_metrics.output
|
||||
scheme = "https"
|
||||
|
||||
tls_config {
|
||||
@@ -212,9 +221,8 @@ alloy:
|
||||
|
||||
|
||||
|
||||
|
||||
// ===========================================================
|
||||
// Discovery:relabel: kube_pods_metrics (cAdviser)
|
||||
// Discovery:relabel: kube_node_metrics (cAdviser)
|
||||
// Requirements:
|
||||
// - discovery.kubernetes.role.node: kube_nodes
|
||||
// ===========================================================
|
||||
@@ -233,18 +241,12 @@ alloy:
|
||||
target_label = "host"
|
||||
}
|
||||
|
||||
// rule {
|
||||
// source_labels = ["host"]
|
||||
// target_label = "nodename"
|
||||
// }
|
||||
|
||||
rule {
|
||||
replacement = "/metrics/cadvisor"
|
||||
target_label = "__metrics_path__"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extraEnv:
|
||||
|
||||
- name: CLUSTER_NAME
|
||||
|
||||
Reference in New Issue
Block a user