Skip to content

Commit

Permalink
feat: use the prometheus/common instead alertmanager for LoadHTTPConf…
Browse files Browse the repository at this point in the history
…igFile

Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
  • Loading branch information
FUSAKLA committed Jan 9, 2023
1 parent 8721e8f commit ab1d95d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/promtool/main.go
Expand Up @@ -48,8 +48,6 @@ import (
promconfig "github.com/prometheus/common/config"
"github.com/prometheus/common/expfmt"

amconfig "github.com/prometheus/alertmanager/cli/config"

"github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/discovery"
"github.com/prometheus/prometheus/discovery/file"
Expand Down Expand Up @@ -236,7 +234,7 @@ func main() {
kingpin.Fatalf("Cannot set base auth in the server URL and use a http.config.file at the same time")
}
var err error
httpConfig, err := amconfig.LoadHTTPConfigFile(*queryCmdHTTPConfigFile)
httpConfig, _, err := config_util.LoadHTTPConfigFile(*queryCmdHTTPConfigFile)
if err != nil {
kingpin.Fatalf("Failed to load HTTP config file: %v", err)
}
Expand Down

0 comments on commit ab1d95d

Please sign in to comment.