Remove prom-active-alerts

Prom-active-alerts command is not used, not tested, and
currently broken. Let's remove it.
This commit is contained in:
Jean-Philippe Evrard
2020-11-05 10:13:50 +01:00
parent d5fe4fbaec
commit ce6075c800
2 changed files with 0 additions and 24 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
cmd/kured/kured
cmd/prom-active-alerts/prom-active-alerts
vendor
build

View File

@@ -1,23 +0,0 @@
package main
import (
"fmt"
"log"
"os"
"regexp"
"github.com/weaveworks/kured/pkg/alerts"
)
func main() {
if len(os.Args) != 3 {
log.Fatalf("USAGE: %s <prometheusURL> <filterRegexp>", os.Args[0])
}
count, err := alerts.PrometheusCountActive(os.Args[1], regexp.MustCompile(os.Args[2]))
if err != nil {
log.Fatal(err)
}
fmt.Println(count)
}