Skip to content
Merged
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
17 changes: 15 additions & 2 deletions content/en/infrastructure/containers/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
crd_type: "eniconfig"
labelsFromPath:
crd_name: [metadata, name]
metricNamePrefix: "userPrefix"
metrics:
- name: "eniconfig"
help: "ENI Config"
Expand All @@ -455,8 +456,16 @@
path: [metadata, generation]
```

By default, RBAC and API resource names are derived from the kind in groupVersionKind by converting it to lowercase, and adding an "s" suffix (for example, Kind: ENIConfig → eniconfigs). If the Custom Resource Definition (CRD) uses a different plural form, you can override this behavior by specifying the resource field. In the example above, CNINode overrides the default by setting resource: "cninode-pluralized".

Check notice on line 459 in content/en/infrastructure/containers/configuration.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.sentencelength

Suggestion: Try to keep your sentence length to 25 words or fewer.

Check notice on line 459 in content/en/infrastructure/containers/configuration.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.oxfordcomma

Suggestion: Use the Oxford comma in 'By default, RBAC and'.

Metric names are produced using the following rules:

a. No prefix precified: `kubernetes_state_customresource.<metrics.name>`

b. Prefix precified: `kubernetes_state_customresource.<metricNamePrefix>_<metric.name>`

For more details, see [Custom Resource State Metrics][5].

2. Update your Helm or Datadog Operator configuration:

{{< tabs >}}
Expand All @@ -483,6 +492,10 @@
{{% /tab %}}
{{% tab "Datadog Operator" %}}

<div class="alert alert-info">
This functionality requires Agent Operator v1.20+.
</div>

1. Install the Datadog Operator with an option that grants the Datadog Agent permission to collect custom resources:

```
Expand Down Expand Up @@ -514,7 +527,7 @@

{{% /tab %}}
{{< /tabs >}}

## Further reading

{{< partial name="whats-next/whats-next.html" >}}
Expand Down
Loading