DEV Community

RagLeap
RagLeap

Posted on

Prometheus 0 Targets and Loki 0 Logs — 5 Real Fixes from ragleap-core Observability Release

We shipped observability for ragleap-core v0.2.0 (v0.2.1 is docs patch).

Stack: Prometheus + Grafana + Loki + Promtail.

Fixes that actually mattered:

  1. ConfigMap corrupted by missing newline

yaml
# Before: two docs merged
# After: Add \n at EOF


**

## 2. Prometheus kubernetes_sd_configs = 0 targets
**

Fix: Replace custom regex, use canonical *path* + cri stage

- source_labels: [__meta_kubernetes_pod_annotation_kubernetes_io_config_path]
  target_label: __path__
  regex: (.+)


**

## 3. Promtail -> Loki DNS
**

loki:
  client:
    url: http://loki-gateway.ragleap.svc.cluster.local:3100/loki/api/v1/push


## **4. postgres-exporter runAsNonRoot
**

securityContext:
  runAsUser: 65534
  runAsNonRoot: true

## **5. Position file starvation**

— Remove diagnostic job sharing positions.yamlVerification:

* kubectl -n ragleap get pods | grep -E 'prometheus|grafana|loki|promtail'
* curl prometheus:9090/api/v1/targets -> activeTargets > 0
* curl loki:3100/loki/api/v1/labels -> 21+ streams

**Release:** https://github.com/antonyrag/ragleap-core/releases/tag/ragleap-observaility-v0.2.0



Enter fullscreen mode Exit fullscreen mode

Top comments (0)