Alibaba Cloud
5 min
understand how to enable alibaba prometheus (arms), supporting your chosen monitoring and alert system prometheus, an open source monitoring toolkit, has been deeply integrated with alibaba cloud kubernetes service (ack) this guide will walk you through setting up arms (alibaba cloud realtime monitoring service) prometheus in your ack cluster using different methods pre requisites kubectl installation ensure you have kubectl installed on your client if not, download and install kubectl https //kubernetes io/docs/tasks/tools/ , and perform the required installation procedure procedure you can use one of the following methods to enable arms prometheus enable arms prometheus by setting cluster parameters to enable arms prometheus for monitoring within the alibaba cloud kubernetes service (ack), follow these user centered steps begin by logging into the ack console navigate to the left side pane and select clusters in the clusters page, find the option to create kubernetes cluster in the upper right corner and select it choose the desired cluster template as you set up the cluster parameters, locate the component configurations wizard page here, ensure you select enable prometheus monitoring note by default, enable prometheus monitoring is selected when you create a cluster after the cluster is created, the system automatically configures arms prometheus enable arms prometheus on the app catalog page in the ack console to streamline the monitoring process using arms prometheus within the alibaba cloud kubernetes service (ack), follow these user centric instructions access the ack console start by logging into the ack console navigate to the app catalog in the left side pane, navigate to marketplace > app catalog locate arms prometheus on the app catalog page, switch to the alibaba cloud apps tab here, search for and select ack arms prometheus choose the cluster & deploy in the ack arms prometheus section, specify the cluster where you intend to enable arms prometheus once selected, proceed to the deploy section and initiate the process by selecting create establish a connection ensure you're connected to the ack clusters using kubectl access cluster details re enter the ack console and navigate to clusters using the left side pane identify and select the cluster you're looking to manage either by clicking on its name or by selecting the details option in the actions column this will redirect you to the detailed page of your chosen cluster gather connection information within the cluster information page, navigate to the connection information tab depending on your preference, choose the required cluster credentials, be it for online access or a private connection by default, kubectl seeks a config file located in the $home/ kube directory of the client this file holds the necessary credentials for cluster authentication ensure that you opt between public access or internal access and copy the credentials store these credentials within the config file found in the $home/ kube directory save and close the file once done validate your connection by executing a kubectl command, ensuring you've established a successful connection to your cluster accessing prometheus execute the command below to route prometheus in the cluster to your local port 9090 arduinocopy codekubectl port forward svc/ack prometheus operator prometheus 9090 9090 n monitoring finally, launch a web browser and access localhost 9090 within the prometheus interface, navigate to status > targets to view all data collection tasks a task labeled as up indicates its successful operation activating arms prometheus via the ack console's prometheus monitoring page if you are seeking to enable arms prometheus through the prometheus monitoring section of the ack console, follow these user friendly steps access the ack console begin by logging into the ack console navigate to clusters from the left side pane, select clusters identify desired cluster on the clusters page, locate the cluster you wish to work on select its name or choose the details option in the actions column this action will redirect you to the comprehensive details of your selected cluster access prometheus monitoring within the cluster details, navigate to the left pane and select operations > prometheus monitoring initiate arms prometheus in the central part of the prometheus monitoring page, select install to begin the arms prometheus setup