Skip to content

Commit

Permalink
Merge pull request #7 from chatwork/readme-username-option
Browse files Browse the repository at this point in the history
Add a detailed description to `sendgrid.username` option
  • Loading branch information
ada-u authored Nov 24, 2020
2 parents 972155c + e989a82 commit 13a3df4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Flags:
Address to listen on for web interface and telemetry.
--web.disable-exporter-metrics
Exclude metrics about the exporter itself (promhttp_*, process_*, go_*).
--sendgrid.username="" Set SendGrid username
--sendgrid.api-key="secret"
Set SendGrid API key
[Required] Set SendGrid API key
--sendgrid.username="" [Optional] Set SendGrid username as a label for each metrics. This is for identifying multiple SendGrid users metrics.
--log.level=info Only log messages with the given severity or above. One of: [debug, info, warn, error]
--log.format=logfmt Output format of log messages. One of: [logfmt, json]
--version Show application version.
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ var (
"web.disable-exporter-metrics",
"Exclude metrics about the exporter itself (promhttp_*, process_*, go_*).",
).Envar("DISABLE_EXPORTER_METRICS").Bool()
sendGridUserName = kingpin.Flag(
"sendgrid.username",
"Set SendGrid username",
).Default("").Envar("SENDGRID_USER_NAME").String()
sendGridAPIKey = kingpin.Flag(
"sendgrid.api-key",
"Set SendGrid API key",
"[Required] Set SendGrid API key",
).Default("secret").Envar("SENDGRID_API_KEY").String()
sendGridUserName = kingpin.Flag(
"sendgrid.username",
"[Optional] Set SendGrid username as a label for each metrics. This is for identifying multiple SendGrid users metrics.",
).Default("").Envar("SENDGRID_USER_NAME").String()
)

func main() {
Expand Down

0 comments on commit 13a3df4

Please sign in to comment.