Skip to content

Commit

Permalink
Remove ksm telemetry parameter (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDatadog authored Oct 6, 2023
1 parent 18b6020 commit 1a5623d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ func ksmCheckConfig(clusterCheck bool, collectorOpts collectorOptions) string {
cluster_check: %s
init_config:
instances:
- telemetry: true
skip_leader_election: %s
- skip_leader_election: %s
collectors:
- pods
- replicationcontrollers
Expand Down
5 changes: 1 addition & 4 deletions docs/kubernetes_state_metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ data:
label_chart_name: chart_name
label_chart_version: chart_version
label_team: team
telemetry: true
- collectors:
- deployments
- daemonsets
Expand All @@ -116,10 +115,9 @@ data:
labels_mapper:
label_service: service
label_app: app
telemetry: true
```

The above example will create 2 separate Cluster Level Checks, using different collectors and features (label joins, telemetry, remapping...).
The above example will create 2 separate Cluster Level Checks, using different collectors and features (label joins, remapping...).
Once you have created the ConfigMap (in the same namespace as the operator), make sure you reference the name in the DatadogAgent Spec, in this case:

You can also reference the configuration in the specification of the DatadogAgent spec as follows:
Expand All @@ -137,7 +135,6 @@ spec:
- collectors:
- pods
- nodes
telemetry: true
```

The above will have the operator create and maintain a ConfigMap for you with this config. It will run a single Kubernetes State Metrics Core check with the pods and nodes collectors enabled.
Expand Down

0 comments on commit 1a5623d

Please sign in to comment.