diff --git a/charts/nginx-ingress/ama-metrics-settings-configmap.yaml b/charts/nginx-ingress/ama-metrics-settings-configmap.yaml new file mode 100644 index 00000000..2bb36099 --- /dev/null +++ b/charts/nginx-ingress/ama-metrics-settings-configmap.yaml @@ -0,0 +1,85 @@ +kind: ConfigMap +apiVersion: v1 +data: + schema-version: + #string.used by agent to parse config. supported versions are {v1}. Configs with other schema versions will be rejected by the agent. + v1 + config-version: + #string.used by customer to keep track of this config file's version in their source control/repository (max allowed 10 chars, other chars will be truncated) + ver1 + prometheus-collector-settings: |- + cluster_alias = "" + default-scrape-settings-enabled: |- + kubelet = true + coredns = false + cadvisor = true + kubeproxy = false + apiserver = false + kubestate = true + nodeexporter = true + windowsexporter = false + windowskubeproxy = false + kappiebasic = true + networkobservabilityRetina = true + networkobservabilityHubble = true + networkobservabilityCilium = true + prometheuscollectorhealth = false + controlplane-apiserver = true + controlplane-cluster-autoscaler = false + controlplane-kube-scheduler = false + controlplane-kube-controller-manager = false + controlplane-etcd = true + acstor-capacity-provisioner = true + acstor-metrics-exporter = true + # Regex for which namespaces to scrape through pod annotation based scraping. + # This is none by default. Use '.*' to scrape all namespaces of annotated pods. + pod-annotation-based-scraping: |- + podannotationnamespaceregex = ".*" + default-targets-metrics-keep-list: |- + kubelet = "" + coredns = "" + cadvisor = "" + kubeproxy = "" + apiserver = "" + kubestate = "" + nodeexporter = "" + windowsexporter = "" + windowskubeproxy = "" + podannotations = "" + kappiebasic = "" + networkobservabilityRetina = "" + networkobservabilityHubble = "" + networkobservabilityCilium = "" + controlplane-apiserver = "" + controlplane-cluster-autoscaler = "" + controlplane-kube-scheduler = "" + controlplane-kube-controller-manager = "" + controlplane-etcd = "" + acstor-capacity-provisioner = "" + acstor-metrics-exporter = "" + minimalingestionprofile = true + default-targets-scrape-interval-settings: |- + kubelet = "30s" + coredns = "30s" + cadvisor = "30s" + kubeproxy = "30s" + apiserver = "30s" + kubestate = "30s" + nodeexporter = "30s" + windowsexporter = "30s" + windowskubeproxy = "30s" + kappiebasic = "30s" + networkobservabilityRetina = "30s" + networkobservabilityHubble = "30s" + networkobservabilityCilium = "30s" + prometheuscollectorhealth = "30s" + acstor-capacity-provisioner = "30s" + acstor-metrics-exporter = "30s" + podannotations = "30s" + debug-mode: |- + enabled = false +metadata: + name: ama-metrics-settings-configmap + namespace: kube-system + +# Note: in Azure environments, deploy this configmap in the kube-system namespace to scrape pod metrics with azure managed prometheus by running: kubectl apply -f file_name \ No newline at end of file