grafana/pkg/services/pluginsintegration
Giedrius Statkevičius 0485cf34cd
Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301)
`X-Dashboard-Uid`, `X-Datasource-Uid`, `X-Grafana-Org-Id`, `X-Panel-Id` are very useful headers set
by Grafana front-end that we would like to see on the data source as
well. This is so that it would be possible to pinpoint from where slow
queries are coming in Mimir/Thanos/Cortex/etc., for example. Relevant
Mimir code lines:
0a94f26203/pkg/frontend/transport/handler.go (L182-L184)

Tested manually that with these changes the headers are visible.
2022-12-22 11:15:00 +01:00
..
clientmiddleware Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301) 2022-12-22 11:15:00 +01:00
doc.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
pluginsintegration.go Plugins: Pass through dashboard/contextual HTTP headers to plugins/datasources (#60301) 2022-12-22 11:15:00 +01:00