Prerequisites
Expected Behavior
prometheus can scrape metrics from loki-stack-promtail-metrics service
Current Behavior
prometheus cannot connect to loki-stack-promtail-metrics service in loki namespace
Failure Information (for bugs)
promtail pod labels does not contain the specified in the networkPolicy selector and the rule does not work correctly
> k get po loki-stack-promtail-hp9m8 --show-labels
NAME READY STATUS RESTARTS AGE LABELS
loki-stack-promtail-hp9m8 1/1 Running 0 18d app.kubernetes.io/instance=loki-stack,app.kubernetes.io/name=promtail,controller-revision-hash=f6cb9774c,pod-template-generation=1