Pre-requisites to configuring the monitor profile
Before configuring the monitor profile, ensure that the ports that you use to connect to the cluster (default 6443) and all cluster nodes (10250; cannot be changed) are accessible by the PATROL Agents that you have selected for monitoring your Kubernetes environment.
Understanding monitoring scope by envChecker utility
To understand what nodes, namespaces, pods, and containers that you can monitor in your environment, run the envChecker utility available in the following folder:
The utility also helps you to confirm if your connection with Kubernetes is established correctly. It lists the number of instances of nodes, namespaces, pods, and containers that can be monitored in your environment. You can also select to include nodes, components, and containers to the report or not. You also get the option to filter (include or exclude) namespaces in the report.
To continue getting uninterrupted monitoring results, configure filtering of these instances carefully in the Infrastructure or Monitor policy.
To run the utility
Go to the directory where the utility is available, and run the following command:
- Enter the IP address or host name of the master node.
- Enter the port to access the master node.
- Enter a value to select the authentication type —
1for certificate or
- Based on the authentication type that you selected, either enter the client certificate file path and password or enter the authentication token.
- Type Y to use proxy server configuration or N otherwise.
- If you have opted to use proxy server configuration, enter the server name, port, username, and password to access the server.
- Type Y to include nodes in the report or N otherwise.
- Type Y to include component instance count in the report or N otherwise.
- Type Y to include container instance count in the report or N otherwise.
- Type 0 to include or 1 to exclude namespaces in the report.
- Based on the option you entered, enter regular expressions to filter namespaces in the report.
For example, to include all namespaces that begin with production, first type 0 and then enter the following regular expression:
- Press Enter.