lablup / lablup/backend.ai

Service labels not included in Prometheus service discovery response

Open
#7,467 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Problem

The Prometheus service discovery endpoint was not including custom service labels (such as `route_id`, `endpoint_id`, `model_service_name`, `runtime_variant`) in the response.

## Root Cause

When building the Prometheus service discovery response in `manager/server.py`, only hardcoded labels (`service_id`, `service_group`, `display_name`) were included. The `service.labels` dictionary containing custom labels from `ModelServiceMetadata` was not being spread into the response.

## Fix

Added `**service.labels` spread to include all custom service labels in the Prometheus service discovery response.

JIRA Issue: BA-3471

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.