Skip to content

Commit

Permalink
fix: unable to start pika exporter (#2640)
Browse files Browse the repository at this point in the history
* delete defalut value of codisadr

* add description for using codisaddr

* Update main.go

---------

Co-authored-by: xiaodi05 <[email protected]>
Co-authored-by: Xin.Zh <[email protected]>
  • Loading branch information
3 people authored and brother-jin committed May 15, 2024
1 parent 4653d98 commit bddc1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pika_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var (
hostFile = flag.String("pika.host-file", getEnv("PIKA_HOST_FILE", ""), "Path to file containing one or more pika nodes, separated by newline. NOTE: mutually exclusive with pika.addr.")
addr = flag.String("pika.addr", getEnv("PIKA_ADDR", ""), "Address of one or more pika nodes, separated by comma.")
codisaddr = flag.String("codis.addr", getEnv("CODIS_ADDR", "http://localhost:port/topom"), "Address of one or more codis topom urls, separated by comma.")
codisaddr = flag.String("codis.addr", getEnv("CODIS_ADDR", ""), "Address of one or more codis topom urls, separated by comma, such as \"http://localhost:port/topom\".")
password = flag.String("pika.password", getEnv("PIKA_PASSWORD", ""), "Password for one or more pika nodes, separated by comma.")
alias = flag.String("pika.alias", getEnv("PIKA_ALIAS", ""), "Pika instance alias for one or more pika nodes, separated by comma.")
namespace = flag.String("namespace", getEnv("PIKA_EXPORTER_NAMESPACE", "pika"), "Namespace for metrics.")
Expand Down

0 comments on commit bddc1a3

Please sign in to comment.