Skip to content

bug: prometheus cannot connect to loki-stack-promtail-metrics endpoint #317

@p1gmale0n

Description

@p1gmale0n

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions