We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1631915 commit 9a69b8fCopy full SHA for 9a69b8f
cli/utils.go
@@ -19,7 +19,6 @@ import (
19
"fmt"
20
"net/url"
21
"os"
22
- "path"
23
24
kingpin "github.com/alecthomas/kingpin/v2"
25
"github.com/prometheus/common/model"
@@ -30,13 +29,6 @@ import (
30
29
"github.com/prometheus/alertmanager/pkg/labels"
31
)
32
33
-// GetAlertmanagerURL appends the given path to the alertmanager base URL
34
-func GetAlertmanagerURL(p string) url.URL {
35
- amURL := *alertmanagerURL
36
- amURL.Path = path.Join(alertmanagerURL.Path, p)
37
- return amURL
38
-}
39
-
40
// parseMatchers parses a list of matchers (cli arguments).
41
func parseMatchers(inputMatchers []string) ([]labels.Matcher, error) {
42
matchers := make([]labels.Matcher, 0, len(inputMatchers))
0 commit comments