Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion content/en/docs/zero-code/obi/configure/service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description:
instrument.
weight: 20
# prettier-ignore
cSpell:ignore: filestorecsi kube-node-lease kube-system rdns replicaset statefulset volumepopulator
cSpell:ignore: filestorecsi kube-node-lease kube-system rdns replicaset statefulset testserver volumepopulator
---

The `OTEL_EBPF_AUTO_TARGET_EXE`, `OTEL_EBPF_OPEN_PORT`,
Expand Down Expand Up @@ -41,6 +41,7 @@ service type.
| `cmd_args` | Selects processes by command-line arguments. Refer to [command-line arguments](#command-line-arguments). | string (glob) | (unset) |
| `target_pids` | Selects processes by PID. Refer to [target pids](#target-pids). | list of integers | (unset) |
| `containers_only` | Selects processes to instrument which are running in an OCI container. Refer to [containers only](#containers-only). | boolean | false |
| `container_name` | Filter services by OCI container name. Refer to [Container name](#container-name). | string (glob) | (unset) |
| `k8s_namespace` | Filter services by Kubernetes namespace. Refer to [K8s namespace](#k8s-namespace). | string (glob) | (unset) |
| `k8s_pod_name` | Filter services by Kubernetes Pod. Refer to [K8s Pod name](#k8s-pod-name). | string (glob) | (unset) |
| `k8s_deployment_name` | Filter services by Kubernetes Deployment. Refer to [K8s deployment name](#k8s-deployment-name). | string (glob) | (unset) |
Expand Down Expand Up @@ -149,6 +150,26 @@ perform the network namespace inspection, it ignores this option.
If you specify other selectors in the same `instrument` entry, the processes
must match all the selector properties.

### Container name

This selector property limits the instrumentation to the applications running in
OCI containers (such as Docker) with a name matching the provided glob pattern.

For example:

```yaml
discovery:
instrument:
- container_name: '*testserver*'
- container_name: 'my-app-*'
```

This example discovers all processes running in containers whose names contain
`testserver` or start with `my-app-`.

If you specify other selectors in the same `instrument` entry, the processes
must match all the selector properties.

### K8s namespace

This selector property limits the instrumentation to the applications running in
Expand Down
13 changes: 13 additions & 0 deletions content/en/docs/zero-code/obi/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ check the `attributes`->`select` section in the
| Application (all) | `k8s.replicaset.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.statefulset.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.cluster.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `container.id` | shown if Docker metadata is enabled |
| Application (all) | `container.name` | shown if Docker metadata is enabled |
| Application (all) | `cloud.provider` | shown if cloud metadata is enabled |
| Application (all) | `cloud.platform` | shown if cloud metadata is enabled |
| Application (all) | `cloud.region` | shown if cloud metadata is enabled |
| Application (all) | `cloud.account.id` | shown if cloud metadata is enabled |
| Application (all) | `cloud.availability_zone` | shown if cloud metadata is enabled |
| Application (all) | `cloud.resource_id` | shown if cloud metadata is enabled (Azure only) |
| Application (all) | `host.id` | shown if cloud metadata is enabled |
| Application (all) | `host.type` | shown if cloud metadata is enabled |
| Application (all) | `host.image.id` | shown if cloud metadata is enabled (AWS only) |
| Application (all) | `gcp.gce.instance.name` | shown if cloud metadata is enabled (GCP only) |
| Application (all) | `gcp.gce.instance.hostname` | shown if cloud metadata is enabled (GCP only) |
| Application (all) | `service.name` | shown |
| Application (all) | `service.namespace` | shown |
| Application (all) | `target.instance` | shown |
Expand Down
Loading