Hi, I have successfully installed grafana, loki, alloy, I can see the windows pod logs also, which are there before from the kube-system namespace, monitoring namespace from grafana dashboard expore section.
Now I have deployed a new windows pod, Now I cannot able to see the pod details in the explorer.
Kindly help me to troubleshoot the issue. Please find the below values.yaml code for alloy.
alloy:
configMap:
content: |-
discovery.kubernetes "pods" {
role = "pod"
}
discovery.relabel "pod_logs" {
targets = discovery.kubernetes.pods.targets
rule {
source_labels = ["__meta_kubernetes_namespace"]
target_label = "namespace"
action = "replace"
}
rule {
source_labels = ["__meta_kubernetes_pod_name"]
target_label = "pod"
action = "replace"
}
rule {
source_labels = ["__meta_kubernetes_pod_container_name"]
target_label = "container"
action = "replace"
}
rule {
source_labels = ["__meta_kubernetes_namespace", "__meta_kubernetes_pod_container_name"]
action = "replace"
target_label = "job"
separator = "/"
replacement = "$1"
}
}
loki.source.kubernetes "pods" {
targets = discovery.relabel.pod_logs.output
forward_to = [loki.write.endpoint.receiver]
}
loki.write "endpoint" {
endpoint {
url = "http://loki-gateway.monitoring.svc.cluster.local/loki/api/v1/push"
}
}
controller:
nodeSelector:
kubernetes.io/os: linux
Also, Please check the logs of alloy pod, I can see my new windows container name is showing in the logs, but notin the dashboard
”ts=2025-09-12T04:25:11.808638429Z level=info msg=“config reloaded” service=http
ts=2025-09-12T04:25:11.808733529Z level=info msg=“scheduling loaded components and services”
ts=2025-09-12T04:34:16.819219447Z level=info msg=“tailer running” target=sitecore/sample-b4bf8f8b9-nstwz:sample component_path=/ component_id=loki.source.kubernetes.pods
ts=2025-09-12T04:34:16.840469503Z level=info msg=“opened log stream” target=sitecore/sample-b4bf8f8b9-nstwz:sample component_path=/ component_id=loki.source.kubernetes.pods “start time”=1970-01-01T00:00:00.000Z”
Thanks,
Biswajit