Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana source uid added to grafana-source interface #359

Merged
merged 8 commits into from
Nov 29, 2024

Conversation

PietroPasotti
Copy link
Contributor

@PietroPasotti PietroPasotti commented Nov 25, 2024

Issue

The grafana source providers need to receive back from grafana the UIDs assigned to them. This, to support cross-referencing functionalities such as canonical/tempo-coordinator-k8s-operator#77.

Tandem PR in prometheus to forward this data to remote-write integrations

Solution

added a grafana_source_uids: Dict[unit_name: source_uid] field to the application databag on the grafana side.

All changes are additive and therefore backwards-compatible.

@michaeldmitry
Copy link
Contributor

michaeldmitry commented Nov 28, 2024

image
Tested relation data and the structure looks good to me :)

@michaeldmitry michaeldmitry force-pushed the grafana_source_uid_share branch from f8227b0 to 82dc57d Compare November 28, 2024 08:54
Copy link
Contributor

@mmkay mmkay left a comment

Choose a reason for hiding this comment

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

Just a minor comment, otherwise looks good.

lib/charms/grafana_k8s/v0/grafana_source.py Show resolved Hide resolved
@michaeldmitry michaeldmitry force-pushed the grafana_source_uid_share branch from 623d8e0 to 8c4b37b Compare November 28, 2024 14:17
@PietroPasotti PietroPasotti merged commit a884982 into main Nov 29, 2024
14 checks passed
@PietroPasotti PietroPasotti deleted the grafana_source_uid_share branch November 29, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants