From bf4bd336d13299a9c8cf208d205fad1ee7b074b0 Mon Sep 17 00:00:00 2001 From: Matheus Fidelis Date: Sun, 28 Jan 2024 18:58:23 -0300 Subject: [PATCH] feature(prometheus): removing test files --- helm/prometheus/managed/remote_write.yml.tpl | 22 -------- helm/prometheus/managed/scrape.yaml.tpl | 55 -------------------- 2 files changed, 77 deletions(-) delete mode 100644 helm/prometheus/managed/remote_write.yml.tpl delete mode 100644 helm/prometheus/managed/scrape.yaml.tpl diff --git a/helm/prometheus/managed/remote_write.yml.tpl b/helm/prometheus/managed/remote_write.yml.tpl deleted file mode 100644 index ba395e7..0000000 --- a/helm/prometheus/managed/remote_write.yml.tpl +++ /dev/null @@ -1,22 +0,0 @@ -prometheus: - prometheusSpec: - # podMonitorNamespaceSelector: - # any: true - podMonitorSelector: {} - podMonitorSelectorNilUsesHelmValues: false - # ruleNamespaceSelector: - # any: true - ruleSelector: {} - ruleSelectorNilUsesHelmValues: false - # serviceMonitorNamespaceSelector: - # any: true - serviceMonitorSelector: {} - serviceMonitorSelectorNilUsesHelmValues: false - -prometheusOperator: - enabled: true - namespaces: '' - denyNamespaces: '' - prometheusInstanceNamespaces: '' - alertmanagerInstanceNamespaces: '' - thanosRulerInstanceNamespaces: '' diff --git a/helm/prometheus/managed/scrape.yaml.tpl b/helm/prometheus/managed/scrape.yaml.tpl deleted file mode 100644 index 4eba856..0000000 --- a/helm/prometheus/managed/scrape.yaml.tpl +++ /dev/null @@ -1,55 +0,0 @@ -global: - scrape_interval: 30s - external_labels: - clusterArn: ${CLUSTER_NAME} -scrape_configs: - - job_name: pod_exporter - kubernetes_sd_configs: - - role: pod - - job_name: cadvisor - scheme: https - authorization: - credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token - kubernetes_sd_configs: - - role: node - relabel_configs: - - action: labelmap - regex: __meta_kubernetes_node_label_(.+) - - replacement: kubernetes.default.svc:443 - target_label: __address__ - - source_labels: [__meta_kubernetes_node_name] - regex: (.+) - target_label: __metrics_path__ - replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor - # apiserver metrics - - scheme: https - authorization: - credentials_file: /var/run/secrets/kubernetes.io/serviceaccount/token - job_name: kubernetes-apiservers - kubernetes_sd_configs: - - role: endpoints - relabel_configs: - - action: keep - regex: default;kubernetes;https - source_labels: - - __meta_kubernetes_namespace - - __meta_kubernetes_service_name - - __meta_kubernetes_endpoint_port_name - # kube proxy metrics - - job_name: kube-proxy - honor_labels: true - kubernetes_sd_configs: - - role: pod - relabel_configs: - - action: keep - source_labels: - - __meta_kubernetes_namespace - - __meta_kubernetes_pod_name - separator: '/' - regex: 'kube-system/kube-proxy.+' - - source_labels: - - __address__ - action: replace - target_label: __address__ - regex: (.+?)(\\:\\d+)? - replacement: $1:10249 \ No newline at end of file