Comments (2)
Having this issue in one datasource you've developed yourself or a community one, if so which one? In general feels like configuring the URL for an HTTP-based datasource populate the host to whatever host is in that URL? Maybe you can provide some additional details why this is important for you and what the specific use case is for modifying the Host header. Thanks
from grafana-plugin-sdk-go.
Hi @marefr
In my Kubernetes setup, I'm using Grafana to access multiple Prometheus instances across various Red Hat OCP clusters. Typically, I connect to these Prometheus instances using URLs specific to the targeted OCP clusters. These domains are not registered in DNS, requiring manual configuration of CoreDNS as an equivalent to setting /etc/hosts
, since Grafana doesnโt allow configuring the Host
header directly.
I noticed Grafana supports custom headers in Prometheus data source configuration. Based on my experience, setting the Host
header seemed like a viable solution. However, this didn't work as expected due to the way Go's net/http
package uniquely handles the Host
header.
There are alternative solutions to this issue, but considering Grafana already has a custom header feature, and the Host
header isn't fundamentally different from others, it seems logical to enable its functionality in Grafana. This is regardless of Go's package treating it as a special case.
from grafana-plugin-sdk-go.
Related Issues (20)
- Docs: Update developer-guide.md in regards to Generate Go code for Protobuf definitions
- Potential data race in tracing middleware HOT 1
- Instancemgmt: Instance possibly being disposed while still being in use
- Instrumentation: Automatically include contextual/trace id information in log messages HOT 1
- An error occurred when executing mage - v HOT 5
- An error occurred when executing mage - v HOT 9
- Add a way to get the Grafana instance URL from backend plugins HOT 2
- Darwin ARM64 not built for build:debug mage target HOT 3
- Debug mode not working in LLM plugin HOT 7
- Frame incorrectly parses Uint64 values HOT 1
- Support building plugins for FreeBSD amd64 HOT 1
- sqlutil.FrameFromRows: multiple results sets with different columns fail HOT 1
- Allow to set the same header multiple time in Prometheus Datascources HOT 1
- Fix flaky test
- Errorsource's RoundTripper returns custom error alongside response HOT 3
- Update functionality brought in from sqlds
- Macros can consume too much of a query containing parentheses
- getMacroMatches panics if given a macro arg string missing its close bracket HOT 1
- Standalone not erroring when required files are missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-plugin-sdk-go.