Skip to content

Commit

Permalink
fix: calculate RemoteAllowed based on remote/prom configs (#945)
Browse files Browse the repository at this point in the history
Currently, RemoteAllowed controls if triggers of both "remote" types (remote graphite and prometheus) could be created, but it is calculated only based on remote graphite config.

In our case we only use prometheus triggers, so it is a little odd to fill in remote graphite config section to allow to create prometheus triggers.
  • Loading branch information
Pliner authored Oct 25, 2023
1 parent cac64ea commit 27662e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func main() {
prometheusSource,
)

webConfigContent, err := applicationConfig.Web.getSettings(remoteConfig.Enabled)
webConfigContent, err := applicationConfig.Web.getSettings(remoteConfig.Enabled || prometheusConfig.Enabled)
if err != nil {
logger.Fatal().
Error(err).
Expand Down

0 comments on commit 27662e7

Please sign in to comment.