Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added prometheus configmap #622

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions charts/nginx-ingress/ama-metrics-settings-configmap.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading