I am running metricbeat deployment and daemonset using elasticsearch helm chart. In my metricbeat deployment I am collecting state metrics from the kube-state-metrics API from an openshift cluster and experience following errors from time to time:
2021-08-19T08:31:50.189Z ERROR [kubernetes.state_deployment] state_deployment/state_deployment.go:98 decoding of metric family failed: context deadline exceeded (Client.Timeout or context cancellation while reading body)
2021-08-19T08:33:39.893Z INFO module/wrapper.go:259 Error fetching data for metricset kubernetes.state_container: error getting event: decoding of metric family failed: context deadline exceeded (Client.Timeout or context cancellation while reading body)
At the same time I see that some state metrics are getting indexed in elasticsearch and some I am missing. Maybe it is related to the timeouts I see in my metricbeat deployment
Thanks