Skip to content

Conversation

@jpraychev
Copy link
Contributor

@jpraychev jpraychev commented Oct 27, 2025

What this PR does / why we need it:
The PR fixes the metric.attributes.cluster dimensions to provide the whole hostname, as with the current parsing logic, only a subset (mainly only the api string) of the hostname is presented to the end user (on the respective backend). The information is not particularly useful if you want to determine which cluster the metric originates from, hence the current PR proposal:

For example, the following cluster https://api.c-123456.stage.kyma.ondemand.com, results in just api on the backend. The same goes for MCP cluster naming convention as well.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Fixes hostname parsing logic

@maximiliantech maximiliantech self-requested a review November 4, 2025 12:04
name: "IPAddress",
host: "https://192.168.1.1:6443",
expectedName: "192", // The function only extracts the first part of the IP address
expectedName: "192.168.1.1", // The function only extracts the first part of the IP address
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment here is a bit misleading since the whole IP address is now expected. Can you remove the comment please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants