export DJANGO_SETTINGS_MODULE=mysite.settings
env:- name: DJANGO_SETTINGS_MODULEvalue: mysite.settings
cloud.tencent.com/inject-python: "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-python: "true" # Add it here.cloud.tencent.com/otel-service-name: my-appspec:containers:image: my-app:0.1name: my-app
Configuration Item | Description |
cloud.tencent.com/apm-token | Specify the Token for the APM business system. If this configuration item is not added, the Operator's configuration is used (corresponding to the Operator's env.APM_TOKEN field). |
cloud.tencent.com/python-instr-version | Specify the Python agent version. If this configuration item is not added, the Operator's configuration is used (corresponding to the Operator's
env.PYTHON_INSTR_VERSION field). The value 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. |
cloud.tencent.com/container-names | Specify the container for agent injection. This configuration item supports injecting probes 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. |