<!-- If you suspect your issue is a bug, please attach the output of the Agent status page, see https://docs.datadoghq.com/agent/faq/agent-commands/#agent-information --> **Output of the info page (if this is a bug)** ``` 2021-07-22 12:17:09 UTC | CLUSTER | WARN | (pkg/util/log/log.go:541 in func1) | Agent configuration relax permissions constraint on the secret backend cmd, Group can read and exec 2021-07-22 12:17:09 UTC | CLUSTER | INFO | (pkg/util/log/log.go:526 in func1) | Found 'HTTP_PROXY' env var, using it for the Agent proxy settings Getting the status from the agent. 2021-07-22 12:17:09 UTC | CLUSTER | INFO | (pkg/util/log/log.go:526 in func1) | Found 'HTTPS_PROXY' env var, using it for the Agent proxy settings 2021-07-22 12:17:09 UTC | CLUSTER | INFO | (pkg/util/log/log.go:526 in func1) | Found 'NO_PROXY' env var, using it for the Agent proxy settings 2021-07-22 12:17:09 UTC | CLUSTER | INFO | (pkg/util/log/log.go:526 in func1) | Features detected from environment: kubernetes =============================== Datadog Cluster Agent (v1.13.0) =============================== Status date: 2021-07-22 12:17:09.279 UTC (1626956229279) Agent start: 2021-07-22 07:49:43.86 UTC (1626940183860) Pid: 1 Go Version: go1.15.11 Build arch: amd64 Agent flavor: cluster_agent Check Runners: 4 Log Level: INFO Paths ===== Config File: /etc/datadog-agent/datadog-cluster.yaml conf.d: /etc/datadog-agent/conf.d Clocks ====== System time: 2021-07-22 12:17:09.279 UTC (1626956229279) Hostnames ========= ec2-hostname: *** hostname: *** instance-id: *** socket-fqdn: datadog-cluster-agent-6f5bfccb6d-fs4d4 socket-hostname: datadog-cluster-agent-6f5bfccb6d-fs4d4 hostname provider: aws unused hostname providers: azure: azure_hostname_style is set to 'os' configuration/environment: hostname is empty gce: unable to retrieve hostname from GCE: status code 404 trying to GET http://169.254.169.254/computeMetadata/v1/instance/hostname Metadata ======== Leader Election =============== Leader Election Status: Running Leader Name is: datadog-cluster-agent-6f5bfccb6d-fs4d4 Last Acquisition of the lease: Thu, 22 Jul 2021 07:49:44 UTC Renewed leadership: Thu, 22 Jul 2021 12:17:05 UTC Number of leader transitions: 1 transitions Custom Metrics Server ===================== Disabled: The external metrics provider is not enabled on the Cluster Agent Cluster Checks Dispatching ========================== Status: Leader, serving requests Active nodes: 7 Check Configurations: 0 - Dispatched: 0 - Unassigned: 0 Admission Controller ==================== Disabled: The admission controller is not enabled on the Cluster Agent ========= Collector ========= Running Checks ============== kubernetes_apiserver -------------------- Instance ID: kubernetes_apiserver [OK] Configuration Source: file:/etc/datadog-agent/conf.d/kubernetes_apiserver.d/conf.yaml.default Total Runs: 1,070 Metric Samples: Last Run: 0, Total: 0 Events: Last Run: 1, Total: 726 Service Checks: Last Run: 4, Total: 4,280 Average Execution Time : 1.903s Last Execution Date : 2021-07-22 12:17:02 UTC (1626956222000) Last Successful Execution Date : 2021-07-22 12:17:02 UTC (1626956222000) kubernetes_state_core --------------------- Instance ID: kubernetes_state_core:e407ffa33ed108e2 [OK] Configuration Source: file:/etc/datadog-agent/conf.d/kubernetes_state_core.yaml.default Total Runs: 1,070 Metric Samples: Last Run: 3,936, Total: 4,131,169 Events: Last Run: 0, Total: 0 Service Checks: Last Run: 28, Total: 30,051 Average Execution Time : 63ms Last Execution Date : 2021-07-22 12:17:07 UTC (1626956227000) Last Successful Execution Date : 2021-07-22 12:17:07 UTC (1626956227000) ========= Forwarder ========= Transactions ============ Clusters: 0 CronJobs: 0 DaemonSets: 0 Deployments: 0 Dropped: 0 DroppedOnInput: 0 Jobs: 0 Nodes: 0 Pods: 0 ReplicaSets: 0 Requeued: 0 Retried: 0 RetryQueueSize: 0 Services: 0 Transaction Successes ===================== Total number: 2276 Successes By Endpoint: check_run_v1: 1,069 intake: 138 series_v1: 1,069 ========== Endpoints ========== https://app.datadoghq.com - API Key ending with: - 49904 ``` **Describe what happened:** The `kubernetes_state_core` check on the cluster agent is not reporting the `kubernetes_state.node.count` metric. This reflects both in the Datadog metric explorer as well as the [built-in Kubernetes Dashboard](https://app.datadoghq.com/screen/integration/86/kubernetes---overview) **Describe what you expected:** The `kubernetes_state_core` check should report the proper count of master and worker nodes in our Kubernetes cluster. **Steps to reproduce the issue:** Install the `2.19.3` version of the [datadog helm chart](https://github.com/DataDog/helm-charts/tree/master/charts/datadog) Set the following override to the default chart `values.yaml` ``` datadog: kubeStateMetricsCore: enabled: true ``` **Additional environment details (Operating System, Cloud provider, etc):** OS (nodes): AmazonLinux 2 Provider: AWS