Skip to content

Commit

Permalink
fix: unable to start pika exporter (OpenAtomFoundation#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 <xiaodi05@meituan.com>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
  • Loading branch information
3 people committed May 8, 2024
1 parent 125299c commit 1da3073
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 1da3073

Please sign in to comment.