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

forward grafana source UIDs #647

Closed
wants to merge 7 commits into from
Closed

Conversation

PietroPasotti
Copy link
Contributor

Issue

the grafana_datasource interface has been updated to give prometheus back the datasource UID provisioned for its units.
This PR instructs prometheus to forward those UIDs over remote-write, so that applications remote-writing to prometheus, such as Tempo or Loki, can obtain the datasource UIDs that have been created for their datasources.

Tandem PR: canonical/grafana-k8s-operator#359

@mmkay
Copy link
Contributor

mmkay commented Nov 27, 2024

I get the intention behind this but it seems like this might be much cleaner if we went the direction with a separate interface (datasource_exchange that would be a relation between prometheus and tempo / loki). Setting datasource_uids in the remote_write relation seems to be adding a field that is coming from an entirely different relation that might even not be a concern for someone that doesn't relate to grafana.

@simskij
Copy link
Member

simskij commented Nov 28, 2024

I agree with @mmkay on this one, and as such, will close this pr.

@simskij simskij closed this Nov 28, 2024
@PietroPasotti
Copy link
Contributor Author

this must have been my feverish brain, but yes.

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