OpenShift Monitoring in Rest API Mode
For the OpenShift monitor, data collection when carried out using SSH mode sometimes results in timeout exception due to the presence of large amount of data to be collected. To avoid this, an enhancement has been made and now data collection will take place using Rest API mode for major metrics.
To add OpenShift monitor using Rest API mode, please follow the below steps:
- Go to the new monitor page and choose OpenShift under Virtualization category.
- After providing the necessary host details, enable the "Collect Major metrics using Rest API" option.
- Provide the Web socket port details and the Service Account Token generated from the Openshift cluster to be monitored(follow the later part of this KB for the steps to generate Service Account Token).
Note: For the Service Account Token, the user should ensure that "Cluster Reader Privilege" is assigned for the Service account used to generate the token.Steps to obtain service account token:
- In the machine where OpenShift is installed, create the service account using the below command:
- oc create serviceaccount apm -n default
- Assign cluster reader role to the Service account created (apm in our case, as mentioned in the above command):
- oc create clusterrolebinding apm-cluster-reader -n default --clusterrole=cluster-reader --serviceaccount=default:apm
- To get the service account token, please execute the below command to be used in the add monitor page:
- oc serviceaccounts get-token apm -n default
Note: apm is an example user. It can be modified to create a new user or provide the username for the existing user from the OpenShift environment.
New to ADSelfService Plus?
Related Articles
Absence of data in the Pods tab or some tabs in the OpenShift monitor
To collect data for the OpenShift Monitor, Applications Manager uses the SSH protocol to connect to the OpenShift server and execute "oc" commands. However, a timeout issue may occur while collecting data if the environment has a large number of ...
REST API Monitor - FAQS
What to Do When Basic Authentication Fails in REST API Monitor: When Basic Authentication fails in the REST API monitor, follow these steps to troubleshoot and resolve the issue: Verify Credentials: Ensure the credentials provided in Applications ...
Service Now Event Integration using Webhook / Rest API Action
Steps to perform in Service Now 1) Login to your ServiceNow Instance(dev*****133.service-now.com) 2) Search for the Rest API Explorer and open it 3) In the Rest API Explorer page choose the Namespace and API Name with the proper API version. For ...
Monitoring HAProxy - Configuring the HAProxy Stats page
To effectively monitor an HAProxy instance, you can enable and access the HAProxy stats page, which provides real-time metrics about HAProxy's performance. Steps to Enable HAProxy Stats: Open the HAProxy Configuration File: The HAProxy configuration ...
How to configure Prometheus inside Openshift to scrape necessary metrics for Applications Manager?
To setup Prometheus inside a Openshift Cluster and scrape metrics for monitoring the same in Applications Manager, kindly follow the steps given below: Create a new Project "monitor" inside the Desired Cluster to be monitored using the below command. ...