General configurations |
Config Name |
The name of the Logtail configuration. You can enter a custom name. |
Cluster |
The name of the Kubernetes cluster. You can enter a custom name.
After you configure this parameter, Log Service adds a cluster=Cluster name tag to the Kubernetes JVM monitoring data that is collected by using the Logtail
configuration.
Important Make sure that the cluster name is unique. Otherwise, data conflicts may occur.
|
JMX Username |
The username that is used to access the JMX server.
We recommend that you do not configure this parameter in Kubernetes clusters.
|
JMX Password |
The password that is used to access the JMX server.
We recommend that you do not configure this parameter in Kubernetes clusters.
|
Global Tags |
The custom tags that are added to the collected Kubernetes JVM monitoring data. The
tags are key-value pairs.
After you configure this parameter, Log Service adds the custom tags to the JVM monitoring
data that is collected by using the Logtail configuration.
|
Configurations for K8s Selector |
Namespace |
The regular expression used to match the names of namespaces from which data is collected.
|
Pod Name |
The regular expression used to match the names of pods from which data is collected.
|
Container Name |
The regular expression used to match the names of containers from which data is collected.
|
Environment Variable Whitelist |
The environment variable whitelist. The whitelist specifies the containers from which
data is collected. This parameter is empty by default, which indicates that stdout
and stderr are collected from all containers. When you configure the environment variable
whitelist, the EnvKey parameter is required, and the EnvValue parameter is optional.
- If the EnvValue parameter is empty, containers whose environment variables contain
the keys specified by EnvKey are matched.
- If the EnvValue parameter is not empty, containers whose environment variables consist
of the key-value pairs specified by EnvKey and EnvValue are matched.
By default, string matching is performed for the values of the EnvValue parameter.
Containers are matched only if the values of the environment variables are the same
as the values of the EnvValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ) for the EnvValue parameter, regular expression matching is performed. For example,
if you set the EnvKey parameter to NGINX_SERVICE_PORT and set the EnvValue parameter to ^(80|6379)$, containers whose port number is 80 and containers whose port number is 6379 are
matched.
Key-value pairs are connected by using the OR operator. If a container has an environment
variable that consists of one of the specified key-value pairs, the container is matched.
|
Environment Variable Blacklist |
The environment variable blacklist. The blacklist specifies the containers from which
data is not collected. This parameter is empty by default, which indicates that data
is collected from all containers. When you configure the environment variable blacklist,
the EnvKey parameter is required, and the EnvValue parameter is optional.
- If the EnvValue parameter is empty, containers whose environment variables contain
the keys specified by EnvKey are filtered out.
- If the EnvValue parameter is not empty, containers whose environment variables consist
of the key-value pairs specified by EnvKey and EnvValue are filtered out.
By default, string matching is performed for the values of the EnvValue parameter.
Containers are matched only if the values of the environment variables are the same
as the values of the EnvValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ) for the EnvValue parameter, regular expression matching is performed. For example,
if you set the EnvKey parameter to NGINX_SERVICE_PORT and set the EnvValue parameter to ^(80|6379)$, containers whose port number is 80 and containers whose port number is 6379 are
matched.
Key-value pairs are connected by using the OR operator. If a container has an environment
variable that consists of one of the specified key-value pairs, the container is filtered
out.
|
K8s Label Whitelist |
The Kubernetes label whitelist. The whitelist specifies the containers from which
data is collected. When you configure the Kubernetes label whitelist, the LabelKey
parameter is required, and the LabelValue parameter is optional.
- If the LabelValue parameter is empty, containers whose Kubernetes labels contain the
keys specified by LabelKey are matched.
- If the LabelValue parameter is not empty, containers whose Kubernetes labels consist
of the key-value pairs specified by LabelKey and LabelValue are matched.
By default, string matching is performed for the values of the LabelValue parameter.
Containers are matched only if the values of the Kubernetes labels are the same as
the values of the LabelValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ), regular expression matching is performed. For example, if you set the LabelKey parameter to app and set the LabelValue parameter to ^(test1|test2)$, containers whose Kubernetes labels consist of app:test1 or app:test2 are matched.
Key-value pairs are connected by using the OR operator. If a container has a Kubernetes
label that consists of one of the specified key-value pairs, the container is matched.
|
K8s Label Blacklist |
The Kubernetes label blacklist. The blacklist specifies the containers from which
data is not collected. When you configure the Kubernetes label blacklist, the LabelKey
parameter is required, and the LabelValue parameter is optional.
- If the LabelValue parameter is empty, containers whose Kubernetes labels contain the
keys specified by LabelKey are filtered out.
- If the LabelValue parameter is not empty, containers whose Kubernetes labels consist
of the key-value pairs specified by LabelKey and LabelValue are filtered out.
By default, string matching is performed for the values of the LabelValue parameter.
Containers are matched only if the values of the Kubernetes labels are the same as
the values of the LabelValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ), regular expression matching is performed. For example, if you set the LabelKey parameter to app and set the LabelValue parameter to ^(test1|test2)$, containers whose Kubernetes labels consist of app:test1 or app:test2 are matched.
Key-value pairs are connected by using the OR operator. If a container has a Kubernetes
label that consists of one of the specified key-value pairs, the container is filtered
out.
|
Container Label Whitelist |
The container label whitelist. The whitelist specifies the containers from which data
is collected. This parameter is empty by default, which indicates that stdout and
stderr are collected from all containers. When you configure the container label whitelist,
the LabelKey parameter is required, and the LabelValue parameter is optional.
- If the LabelValue parameter is empty, containers whose container labels contain the
keys specified by LabelKey are matched.
- If the LabelValue parameter is not empty, containers whose container labels consist
of the key-value pairs specified by LabelKey and LabelValue are matched.
By default, string matching is performed for the values of the LabelValue parameter.
Containers are matched only if the values of the container labels are the same as
the values of the LabelValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ) for the LabelValue parameter, regular expression matching is performed. For example,
if you set the LabelKey parameter to io.kubernetes.container.name and set the LabelValue parameter to ^(nginx|cube)$, a container named nginx and a container named cube are matched.
Key-value pairs are connected by using the OR operator. If a container has a container
label that consists of one of the specified key-value pairs, the container is matched.
|
Container Label Blacklist |
The container label blacklist. The blacklist specifies the containers from which data
is not collected. This parameter is empty by default, which indicates that data is
collected from all containers. When you configure the container label blacklist, the
LabelKey parameter is required, and the LabelValue parameter is optional.
- If the LabelValue parameter is empty, containers whose container labels contain the
keys specified by LabelKey are filtered out.
- If the LabelValue parameter is not empty, containers whose container labels consist
of the key-value pairs specified by LabelKey and LabelValue are filtered out.
By default, string matching is performed for the values of the LabelValue parameter.
Containers are matched only if the values of the container labels are the same as
the values of the LabelValue parameter. If you specify a value that starts with a
caret (^ ) and ends with a dollar sign ($ ) for the LabelValue parameter, regular expression matching is performed. For example,
if you set the LabelKey parameter to io.kubernetes.container.name and set the LabelValue parameter to ^(nginx|cube)$, a container named nginx and a container named cube are matched.
Key-value pairs are connected by using the OR operator. If a container has a container
label that consists of one of the specified key-value pairs, the container is filtered
out.
|
Advanced configurations |
Collect Kubernetes Labels |
After Kubernetes labels are configured, Log Service adds Kubernetes label-related
fields to the collected JVM monitoring data.
For example, set the name of the label to app and the alias of the name to k8s_label_app . If a Kubernetes cluster contains a label named app , such as app=serviceA , Log Service adds the field k8s_label_app: serviceA to the JVM monitoring data.
|
Collect Environment Variable |
After environment variable labels are configured, Log Service adds environment variable
label-related fields to the collected JVM monitoring data.
For example, set the name of the environment variable to VERSION and the alias of the name to env_version . If a container contains an environment variable named VERSION , such as VERSION=v1.0.0 , Log Service adds the field env_version: v1.0.0 to the JVM monitoring data.
|
JMX Garbage Collector of New Version |
After you turn on the switch, JMX garbage collectors of the new versions such as G1
are supported.
|
Default JVM Metrics |
After you turn on the switch, Logtail collects predefined core JVM metrics. |
JMX Metric Collection Filter |
The filtering and collection by using JMX bean ranges, JMX bean regular expressions,
JMX bean types, and JMX attribute ranges are supported.
|