Skip to content

feat: allow display_hint config for indexes#1610

Open
jonaskuske wants to merge 2 commits into
prometheus:mainfrom
jonaskuske:feat/display-hints-for-index-oid-strings
Open

feat: allow display_hint config for indexes#1610
jonaskuske wants to merge 2 commits into
prometheus:mainfrom
jonaskuske:feat/display-hints-for-index-oid-strings

Conversation

@jonaskuske

Copy link
Copy Markdown
Contributor

In #1549, support for DISPLAY-HINT was added for metrics/lookups. However, this does not cover labels/strings coming from Index OIDs.

This PR extends the Index type and indexOidsAsString function to also handle display hints. This allows e.g. cases where IP addresses are used as index in OctetString format.

I was not sure how to best integrate this into the generator and its config, so I've left this part out of the PR for now. Happy to receive some pointers on how this could be integrated into the generator step, otherwise this could be merged as-is and require manual config adjustment for now, and generator functionality could come later?

@jonaskuske jonaskuske force-pushed the feat/display-hints-for-index-oid-strings branch from 4041cd7 to accdeab Compare April 17, 2026 10:35
@SuperQ

SuperQ commented Jun 29, 2026

Copy link
Copy Markdown
Member

Yea, I think this is fine for now. Plumbing this into the generator shouldn't be difficult.

Maybe @lukeod would be able to contribute this?

@SuperQ

SuperQ commented Jul 3, 2026

Copy link
Copy Markdown
Member

This needs a rebase.

Signed-off-by: Jonas Kuske <mail@jonaskuske.com>
@jonaskuske jonaskuske force-pushed the feat/display-hints-for-index-oid-strings branch from accdeab to 78c3b76 Compare July 6, 2026 14:16
Signed-off-by: Jonas Kuske <mail@jonaskuske.com>
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.

3 participants