Just use c.String("metrics")

Co-authored-by: Julien Laffaye <jlaffaye@freebsd.org>
This commit is contained in:
Mads Jon Nielsen 2024-01-03 10:37:41 +01:00 committed by GitHub
parent f10247db90
commit 521f5632d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func buildHealthCommand() *cli.Command {
func healthCommand(c *cli.Context) error {
metrics := strings.Split(c.String("metrics"), ":")
requestURL := fmt.Sprintf("http://%s:%s/ready", metrics[0], metrics[1])
requestURL := fmt.Sprintf("http://%s/ready", c.String("metrics"))
res, err := http.Get(requestURL)
if err != nil {
return err