Skip to content

Commit

Permalink
config: fix naming style (go-graphite#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
msaf1980 authored Feb 26, 2024
1 parent b8ee3e5 commit 3db19c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ type Common struct {
HeadersToLog []string `toml:"headers-to-log" json:"headers-to-log" comment:"additional request headers to log"`

BaseWeight int `toml:"base_weight" json:"base_weight" comment:"service discovery base weight (on idle)"`
DegragedMultiply float64 `toml:"degraged_multiply" json:"degraged_multiply" comment:"service discovery degraded load avg multiplier (if normalized load avg > degraged_load_avg) (default 4.0)"`
DegragedLoad float64 `toml:"degraged_load_avg" json:"degraged_load_avg" comment:"service discovery normilized load avg degraded point (default 1.0)"`
DegragedMultiply float64 `toml:"degraged-multiply" json:"degraged-multiply" comment:"service discovery degraded load avg multiplier (if normalized load avg > degraged_load_avg) (default 4.0)"`
DegragedLoad float64 `toml:"degraged-load-avg" json:"degraged-load-avg" comment:"service discovery normilized load avg degraded point (default 1.0)"`
SDType SDType `toml:"service-discovery-type" json:"service-discovery-type" comment:"service discovery type"`
SD string `toml:"service-discovery" json:"service-discovery" comment:"service discovery address (consul)"`
SDNamespace string `toml:"service-discovery-ns" json:"service-discovery-ns" comment:"service discovery namespace (graphite by default)"`
Expand Down
4 changes: 2 additions & 2 deletions doc/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ Only one tag used as filter for index field Tag1, see graphite_tagged table [str
# service discovery base weight (on idle)
base_weight = 0
# service discovery degraded load avg multiplier (if normalized load avg > degraged_load_avg) (default 4.0)
degraged_multiply = 4.0
degraged-multiply = 4.0
# service discovery normilized load avg degraded point (default 1.0)
degraged_load_avg = 1.0
degraged-load-avg = 1.0
# service discovery type
service-discovery-type = 0
# service discovery address (consul)
Expand Down

0 comments on commit 3db19c9

Please sign in to comment.