mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
api: new v2 metrics query endpoint
Requests to endpoint will currently will error unless expressions feature flag is true. Co-authored-by: Sofia Papagiannaki <papagian@gmail.com>
This commit is contained in:
committed by
Kyle Brandt
parent
24183ba390
commit
771f21ed09
@@ -1094,3 +1094,11 @@ func (cfg *Cfg) LogConfigSources() {
|
||||
cfg.Logger.Info("Path Provisioning", "path", cfg.ProvisioningPath)
|
||||
cfg.Logger.Info("App mode " + Env)
|
||||
}
|
||||
|
||||
func IsExpressionsEnabled() bool {
|
||||
v, ok := FeatureToggles["expressions"]
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
return v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user