Documentation
¶
Index ¶
- type Access
- type InfluxQL
- type Option
- func AccessMode(mode Access) Option
- func BasicAuth(username string, password string) Option
- func Database(database string) Option
- func Default() Option
- func ForwardOauthIdentity() Option
- func HTTPMethod(method string) Option
- func KeepCookies(cookies []string) Option
- func MaxSeries(max int) Option
- func MinTimeInterval(interval time.Duration) Option
- func Password(password string) Option
- func SkipTLSVerify() Option
- func TLSClientAuth(cert string, key string) Option
- func Timeout(timeout time.Duration) Option
- func User(user string) Option
- func WithCACert(cert string) Option
- func WithCredentials() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxQL ¶
type InfluxQL struct {
// contains filtered or unexported fields
}
func (InfluxQL) MarshalJSON ¶
type Option ¶
func AccessMode ¶
AccessMode controls how requests to the data source will be handled. Proxy should be the preferred way if nothing else is stated. Browser will let your browser send the requests (deprecated).
func Database ¶
Database sets the ID of the bucket you want to query from, copied from the Buckets page of the InfluxDB UI.
func ForwardOauthIdentity ¶
func ForwardOauthIdentity() Option
ForwardOauthIdentity forward the user's upstream OAuth identity to the datasource.
func HTTPMethod ¶
HTTPMethod defines the Method used to query the database (GET or POST HTTP verb). The POST verb allows heavy queries that would return an error using the GET verb. Default is GET.
func KeepCookies ¶
KeepCookies controls the cookies that will be forwarded to the data source. All other cookies will be deleted.
func MaxSeries ¶
MaxSeries limits the number of series/tables that Grafana processes. Lower this number to prevent abuse, and increase it if you have lots of small time series and not all are shown. Defaults to 1000.
func MinTimeInterval ¶
MinTimeInterval defines a lower limit for the auto group by time interval. Recommended to be set to write frequency, for example 1m if your data is written every minute.
func Password ¶
Password sets token you use to query the selected bucked, copied from the Tokens page of the InfluxDB UI.
func SkipTLSVerify ¶
func SkipTLSVerify() Option
SkipTLSVerify disables verification of SSL certificates.
func TLSClientAuth ¶
TLSClientAuth enables TLS client side authentication. Expects PEM encoded content.
func WithCACert ¶
WithCACert allows to provide a PEM encoded CA certificate to trust for this data source.
func WithCredentials ¶
func WithCredentials() Option
WithCredentials joins credentials such as cookies or auth headers to cross-site requests.