AWS Cloud
1 min
understand how to activate aws prometheus monitoring, supporting your chosen monitoring system for aws prometheus to be effectively configured and to ensure a smooth monitoring experience, it's crucial to follow the right steps and have the necessary prerequisites in place aws account credentials specifically, the accesskey and secretkey from the account that created the cluster helm a vital tool for managing kubernetes charts kubectl ensure you're using version 1 18 15 or later get the right version here https //docs aws amazon com/eks/latest/userguide/kubernetes versions html aws cli if you haven't installed it, follow these instructions https //docs aws amazon com/cli/latest/userguide/getting started install html procedure configure aws account open your terminal and enter aws configure to set up your aws account to double check your settings, use aws sts get caller identity establish a namespace create a dedicated namespace for prometheus with this command kubectl create namespace prometheus include prometheus repository add the prometheus community chart repository using helm repo add prometheus community https //prometheus community github io/helm charts deploy prometheus use the following command to deploy prometheus helm upgrade i prometheus prometheus community/prometheus namespace prometheus set alertmanager persistentvolume storageclass="gp2",server persistentvolume storageclass="gp2" check your pods verify if all the pods within the prometheus namespace are ready using kubectl get pods n prometheus forward the prometheus console to make your prometheus console accessible from your local machine, use kubectl namespace=prometheus port forward deploy/prometheus server 9090 access the console open your browser and go to localhost 9090 to view the prometheus console dive deeper if you're looking for a more detailed guide, consider visiting the official aws documentation on prometheus https //docs aws amazon com/eks/latest/userguide/prometheus html