cloud.tencent.com/inject-nodejs: "true"cloud.tencent.com/otel-service-name: my-app # Application name, processes that connect using the same application name are displayed in APM as multiple instances under the same application.# The application name can be up to 63 characters and can only contain lowercase letters, digits, and the separator (-), and it must start with a lowercase letter and end with a digit or lowercase letter.
spec.template.metadata.annotations
, affecting the Pod's annotation, not the workload's annotation. You can see the following code snippet: apiVersion: apps/v1kind: Deploymentmetadata:labels:k8s-app: my-appname: my-appnamespace: defaultspec:selector:matchLabels:k8s-app: my-apptemplate:metadata:labels:k8s-app: my-appannotations:cloud.tencent.com/inject-nodejs: "true" # Add herecloud.tencent.com/otel-service-name: my-appspec:containers:image: my-app:0.1name: my-app
OTEL_EXPORTER_OTLP_ENDPOINT
. Suppose the endpoint address you get in the console is grpc://ap-shanghai.apm.tencentcs.com:4317
, you need to change the endpoint address to http://ap-shanghai.apm.tencentcs.com:4317
.export OTEL_EXPORTER_OTLP_ENDPOINT=<HTTP protocol access point>
env:- name: OTEL_EXPORTER_OTLP_ENDPOINTvalue: <HTTP protocol access point>
Configuration Item | Description |
cloud.tencent.com/apm-token | Specify the Token for the APM business system. If this configuration item is not added, the configuration of the Operator is used (corresponding to the Operator's env.APM_TOKEN field). |
cloud.tencent.com/nodejs-instr-version | Specify the Node.js agent version. If this configuration item is not added, the Operator's configuration is used (corresponding to the Operator's env.NODEJS_INSTR_VERSION field). The values can be latest (default) or a specific version number. For a list of specific version numbers, see Agent Version Information. It is not recommended to fill in this field unless necessary. |
loud.tencent.com/container-names | Specify the container for agent injection. This configuration item supports injecting the probe into multiple containers. Just fill in the names of multiple containers in the value of this configuration item and separate them with commas. If this configuration item is not added, the probe will be default injected into the first container. This configuration item is supported in operator 0.88 and above versions. |