Skip to content

Commit

Permalink
Add explicit yaml key name for metric export rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Jul 23, 2021
1 parent 6daeafc commit c02a21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type Server struct {
JWTSecret string `deprecated:"true" def:"" desc:"secret used to secure your JWT tokens"`
LoginMaximumLifetimeDays int `deprecated:"true" def:"0" desc:"amount of days after which user will be logged out. 0 means non-expiring."`

MetricExportRules []MetricExportRule `deprecated:"true" def:"" desc:"metric export rules"`
MetricExportRules []MetricExportRule `yaml:"metric-export-rules" deprecated:"true" def:"" desc:"metric export rules"`
}

type MetricExportRule struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/exporter/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestRegister(t *testing.T) {
}
}

func TestExport(t *testing.T) {
func TestObserve(t *testing.T) {
rules := []config.MetricExportRule{
{
Name: "app_name_cpu_total",
Expand Down

0 comments on commit c02a21d

Please sign in to comment.