Kubernetes dashbords are not showing any metrics

Hello there'
I'm a newbie to elasticsearch. I have a k8s cluster which I want to monitor through the fleet integration. I have the elk with fleet established. I have elastic-agent running on my nodes as linux agent and not as pods and they,re reporting basic system metrics. I also deployed kube-state-metrics inside of the cluster as pods. I can't figure out what's missing, my dashboarrds are not showing any data. Also when I look in teh documentation I can see some people deploying elastic-agent inside of the cluster as pods. is this mandatory? anyone please would be willing to help. Thnak you.