Skip to main content

Additional settings

## Disable monitoring 

get_healthz=1 

get_namespaces=1 

get_services=1 

get_components=1 

get_pods = 1 

get_nodes=1 

get_metrics=1 

## Additional Kubernetes metrics 

# Example: 

# Apiserver request latencies 

bucket=apiserver_request_latencies_bucket{component="apiserver",group="scheduling.k8s. io",resource="priorityclasses",scope="cluster",subresource="",verb="WATCH",version="v1 ",le="125000"} 

## Extra parameters 

#debug=0 

get_healthz 

If it is set to "0", the "/healthz" API monitoring data will no longer be obtained. Its 

default value if not specified is "1" (enabled). 

get_namespaces 

If it is set to "0", the "/api/v1/namespaces" API monitoring data will no longer be 

obtained. If not specified, its default value is "1" (enabled). 

get_services 

If it is set to "0", the "/api/v1/services" API monitoring data will no longer be obtained. If not specified, its default value is "1" (enabled). 

get_components 

If it is set to "0", the "/api/v1/componentstatuses" API monitoring data will no longer be obtained. If not specified, its default value is "1" (enabled). 

get_pods 

If set to '0' "/api/v1/pods" and "/apis/metrics.k8s.io/v1beta1/pods" API monitoring data (if the "metrics-server" addon has been installed) will no longer be obtained. If not specified, its default value is "1" (enabled). 

get_nodes 

If set to '0' "/api/v1/nodes" and "/apis/metrics.k8s.io/v1beta1/nodes" API monitoring data (if the "metrics-server" addon has been installed) will no longer be obtained. If not specified, its default value is "1" (enabled). 

get_deployments 

If set to '0' "/apis/extensions/v1beta1/deployments" API monitoring data will no longer be obtained. If not specified, its default value is "1" (enabled). 

discard_agents 

List of agents (separated by commas) to be discarded from plugin monitoring. They must be the names of the agents without the prefix indicated. 

get_metrics 

If it is set to "0", the "/metrics" API monitoring data will no longer be obtained. If not specified, its default value is "1" (enabled). 

These metrics must be specified in the configuration file with the following format: module name=metric 

For example, if it is specified in the configuration file: 

Apiserver request latencies 

bucket=apiserver_request_latencies_bucket{component="apiserver",group="scheduli ng.k8s.io",resource="priorityclasses",scope="cluster",subresource="",verb="WATCH", version="v1",le="125000"} 

A module will be generated, which is called: 

Apiserver request latencies bucket 

with this metric value: 

apiserver_request_latencies_bucket{component="apiserver",group="scheduling.k8s.io",resource= "priorityclasses",scope="cluster",subresource="",verb="WATCH",version="v1",le="125000"} 

debug 

If it is set to "1", it will show detailed information about the actions that are carried out during the execution of the plugin. If not specified, its default value is "0" (disabled).