Skip to content

Commit 34bc54c

Browse files
dbarbozastuartnelson3
authored andcommitted
Fix rfc3339 example texts (prometheus#1526)
Signed-off-by: Dave Barboza <[email protected]>
1 parent 899226f commit 34bc54c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cli/alert_add.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ func configureAddAlertCmd(cc *kingpin.CmdClause) {
6262
)
6363
addCmd.Arg("labels", "List of labels to be included with the alert").StringsVar(&a.labels)
6464
addCmd.Flag("generator-url", "Set the URL of the source that generated the alert").StringVar(&a.generatorUrl)
65-
addCmd.Flag("start", "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&a.start)
66-
addCmd.Flag("end", "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&a.end)
65+
addCmd.Flag("start", "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&a.start)
66+
addCmd.Flag("end", "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&a.end)
6767
addCmd.Flag("annotation", "Set an annotation to be included with the alert").StringsVar(&a.annotations)
6868
addCmd.Action(execWithTimeout(a.addAlert))
6969
}

cli/silence_add.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func configureSilenceAddCmd(cc *kingpin.CmdClause) {
7878
addCmd.Flag("author", "Username for CreatedBy field").Short('a').Default(username()).StringVar(&c.author)
7979
addCmd.Flag("require-comment", "Require comment to be set").Hidden().Default("true").BoolVar(&c.requireComment)
8080
addCmd.Flag("duration", "Duration of silence").Short('d').Default("1h").StringVar(&c.duration)
81-
addCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.start)
82-
addCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.end)
81+
addCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.start)
82+
addCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.end)
8383
addCmd.Flag("comment", "A comment to help describe the silence").Short('c').StringVar(&c.comment)
8484
addCmd.Arg("matcher-groups", "Query filter").StringsVar(&c.matchers)
8585
addCmd.Action(execWithTimeout(c.add))

cli/silence_update.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func configureSilenceUpdateCmd(cc *kingpin.CmdClause) {
4444
)
4545
updateCmd.Flag("quiet", "Only show silence ids").Short('q').BoolVar(&c.quiet)
4646
updateCmd.Flag("duration", "Duration of silence").Short('d').StringVar(&c.duration)
47-
updateCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.start)
48-
updateCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.end)
47+
updateCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.start)
48+
updateCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.end)
4949
updateCmd.Flag("comment", "A comment to help describe the silence").Short('c').StringVar(&c.comment)
5050
updateCmd.Arg("update-ids", "Silence IDs to update").StringsVar(&c.ids)
5151

0 commit comments

Comments
 (0)