Skip to content

Commit 728e447

Browse files
committed
Remove esExportLicense flag
Signed-off-by: kekkokers <[email protected]>
1 parent 0c74085 commit 728e447

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

main.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ func main() {
9292
esClusterInfoInterval = kingpin.Flag("es.clusterinfo.interval",
9393
"Cluster info update interval for the cluster label").
9494
Default("5m").Duration()
95-
esExportLicense = kingpin.Flag("es.license",
96-
"Export license information").
97-
Default("false").Bool()
9895
esCA = kingpin.Flag("es.ca",
9996
"Path to PEM file that contains trusted Certificate Authorities for the Elasticsearch connection.").
10097
Default("").String()
@@ -232,10 +229,6 @@ func main() {
232229
prometheus.MustRegister(collector.NewIlmIndicies(logger, httpClient, esURL))
233230
}
234231

235-
if *esExportLicense {
236-
prometheus.MustRegister(collector.NewClusterLicense(logger, httpClient, esURL))
237-
}
238-
239232
// Create a context that is cancelled on SIGKILL or SIGINT.
240233
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
241234
defer cancel()

0 commit comments

Comments
 (0)