Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Jun 17, 2020
1 parent 2981a3d commit 2f60a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-images/grafana/cmd/grafana-wrapper/grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func getGrafanaConfig() (*ini.File, error) {
if err != nil {
return nil, fmt.Errorf("failed to load Grafana config: %w", err)
}
// set pattern to automatically convert struct fields to Grafana's INI casing
// see https://grafana.com/docs/grafana/latest/installation/configuration
grafanaConfig.NameMapper = ini.TitleUnderscore
return grafanaConfig, nil
}
1 change: 1 addition & 0 deletions docker-images/grafana/cmd/grafana-wrapper/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
)

// grafanaConfigSMTP describes Grafana's SMTP configuration - https://grafana.com/docs/grafana/latest/installation/configuration/#smtp
type grafanaConfigSMTP struct {
Enabled bool
Host string
Expand Down

0 comments on commit 2f60a4d

Please sign in to comment.