![]() Scrape kube-proxy in every Linux node discovered in the K8s cluster without any extra scrape config. Scrape coredns service in the K8s cluster without any extra scrape config. Scrape node metrics without any extra scrape config. Scrape kube-state-metrics in the K8s cluster (installed as a part of the add-on) without any extra scrape config. Scrape cadvisor in every node in the K8s cluster without any extra scrape config. Scrape kubelet in every node in the K8s cluster without any extra scrape config. A DaemonSet is also deployed to scrape node-wide targets such as kubelet. A replica is deployed to scrape cluster-wide targets such as kube-state-metrics. Default targets are scraped every 30 seconds. The following table has a list of all the default targets that the Azure Monitor metrics add-on can scrape by default and whether it's initially enabled. The ama-metrics-settings-configmap can be downloaded, edited, and applied to the cluster to customize the out-of-the-box features of the metrics add-on. Please be careful when you use discoveries in scrape config in this node level config map, as every node in the cluster will setup & discover the target(s) and will collect redundant metrics. This way you get access to scrape anything that runs on that node from the metrics addon DaemonSet. When you use this configmap, you can use $NODE_IP variable in your scrape config, which will be substituted by corresponding node's ip address in DaemonSet pod running on each node. This config map can be used to provide Prometheus scrape config for addon DaemonSet that runs on every Windows node in the cluster, and node level targets on each node can be scraped by providing scrape jobs in this configmap. ama-metrics-prometheus-config-node-windows.You can take the sample configmap from the above git hub repo, add scrape jobs that you would need and apply/deploy the config map to kube-system namespace for your cluster When you use this configmap, you can use $NODE_IP variable in your scrape config, which gets substituted by corresponding node's ip address in DaemonSet pod running on each node. This config map can be used to provide Prometheus scrape config for addon DaemonSet that runs on every Linux node in the cluster, and any node level targets on each node can be scraped by providing scrape jobs in this configmap. You can take the sample configmap from the above git hub repo, add scrape jobs that you would need and apply/deploy the config map to kube-system namespace for your cluster. Addon runs a singleton replica, and any cluster level services can be discovered and scraped by providing scrape jobs in this configmap. This config map can be used to provide Prometheus scrape config for addon replica. debug-mode - turning this ON helps to debug missing metric/ingestion issues - see more on troubleshooting.30 secs is the default scrape frequency and it can be changed per default target using this configmap scrape intervals for default/pre-definetargets.metric keep-lists - this setting is used to control which metrics are listed to be allowed from each default target and to change the default behavior.enable pod annotation based scraping per namespace.Scrape configuration for these default targets are already pre-defined/built-in enable/disable default scrape targets - Turn ON/OFF default scraping based on targets.cluster alias (to change the value of cluster label in every time-series/metric that's ingested from a cluster).You can take the configmap from the above git hub repo, change the settings are required and apply/deploy the configmap to kube-system namespace for your cluster This config map has below simple settings that can be configured. AMA-Metrics pods will pick up these configmaps after you deploy them to kube-system namespace, and will restart in 2-3 minutes to apply the configuration settings specified in the configmap(s). Depending on what needs to be customized, you need to deploy any or all of these four configmaps with the same name specified, in kube-system namespace. None of the four configmaps exist by default in the cluster when Managed Prometheus is enabled.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |