microsoft / microsoft/retina

Self-Managed Prometheus for Retina in Windows does not work

Open
#1,457 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.2k
Forks
304
Avg merge
1d 19h
Merged PRs (30d)
78

Description

**Describe the bug**
self-managed Prometheus deployment does not work for retina windows pods.

**To Reproduce**
Steps to reproduce the behavior:
1. Deploy retina on windows
2. Go to (https://github.com/microsoft/retina/blob/main/docs/02-Installation/04-prometheus.md)
3. Follow the recommended steps
4. We will Retina targets are not resolved.
5. Metrics are not seen in Graphana

**Expected behavior**
Retina pod pool to be shown in the target with 10093 metrics endpoint recognized.

**Screenshots**
If applicable, add screenshots to help explain your problem.

![Image](https://github.com/user-attachments/assets/892fb27a-1c6a-4958-be39-67d18e190f42)
this image shows that retina targets are not resolved.

**Platform (please complete the following information):**

- OS: Windows 2022
- Kubernetes Version: [e.g. 1.22]
- Retina Version: Latest

**Additional context**
The root cause:
1. The retina win pods require annotation - prometheus.io/scrape = true but it is not seen.
2. Here is how retain win daemon-set looks like --
kubectl describe daemonsets/retina-agent-win -n kube-system | findstr prometheus
prometheus.io/port: 10093
prometheus.io/scrape: true

kubectl describe pods/retina-agent-win-w2jdp -n kube-system | findstr prometheus

3. Scrape job looks for container name retina but retina windows pods look for retinawin

Contributor guide

Open the contributing guide

Research direction

Start with docs/02-Installation/04-prometheus.md and the Prometheus scrape job that discovers Retina Windows pods; compare its container-name selector with retina-agent-win and retinawin and review the prometheus annotations. Reproduce on Windows 2022, then verify the Windows target resolves, recognizes endpoint 10093, and exposes metrics in Grafana.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, prometheus
Domain
devops, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.