Prometheus and Alerts
2 min
alert manager the alert manager manages duplicating, grouping, and routing alerts to the correct receiver integration, such as email and pagerduty and manages silencing and inhibition of alerts alertmanager must be installed on cluster with service exposed on port and targetport 9093 if alert manager is installed on the cluster, add a default receiver to alertmanager configmap in the receiver section prometheus prometheus is an open source monitoring framework it provides out of the box monitoring capabilities for the kubernetes container orchestration platform it scrapes metrics from instrumented jobs and stores all scraped samples locally it then manages this data and generates alerts prometheus must be installed on a cluster with service exposed on port and targetport 9090 if prometheus is installed on a cluster, alertmanager requires data in a specific format to display relevant alert information about the ui hence, in the created config map to externalize prometheus (config map yaml), the pod level queries must include the namespace, pod name and description of the alert under the configuration of alerts in the previous example, the pod level query is defined by expr , which creates an alert if the pod is using more cpu the output of expr should contain the namespace and the pod name to add these values in alert manager, produce the output using $labels under labels section along with prometheus, node exporter must also be installed for node level metrics like memory usage, cpu usage, etc prometheus cloud providers prometheus needs to be configured to each cloud service provider to pull data for its monitoring framework; visit each provider listed below for more details regarding configuration aws configuration docid 46rpaag54nxqcr2wihw0t azure configuration docid qifqy1tgqimzlssx9kwq gcp configuration docid\ tnyutki bt7ynfybv1wxw ibm cloud configuration docid\ xk2c 1qiug34lj1ofg0pd alibaba cloud docid 7zv7i zeoki rsvppj4zo understand how to enable alibaba prometheus (arms), supporting your chosen monitoring and alert system aws cloud docid\ wv9j rrocbkmrnmm14wih understand how to activate aws prometheus monitoring, supporting your chosen monitoring system azure prometheus monitoring docid\ rutsoqq shjwby9fun0m3 understand how to activate azure prometheus monitoring, supporting your chosen monitoring system gcp cloud docid\ uaiqh8ljwpke7jdm5p0b5 understand how to enable prometheus on google cloud platform, supporting your chosen monitoring system ibm cloud docid\ b8wqovmsegia6hvldpiht how to enable ibm cloud prometheus, supporting your chosen monitoring system