Fix typos in comments and metric HELPs (#1790)

No functional change.

Signed-off-by: Karsten Weiss <knweiss@gmail.com>
This commit is contained in:
Karsten Weiss 2019-03-12 10:29:26 +01:00 committed by Max Inden
parent c0a7c07236
commit c637ca1a6e
10 changed files with 14 additions and 14 deletions

View File

@ -349,7 +349,7 @@ This release uses a new storage backend based on BoltDB. You have to backup
and wipe your former storage path to run it.
* [CHANGE] Use BoltDB as data store.
* [CHANGE] Move SMTP authentification to configuration file
* [CHANGE] Move SMTP authentication to configuration file
* [FEATURE] add /-/reload HTTP endpoint
* [FEATURE] Filter silenced alerts in web UI
* [ENHANCEMENT] reduce inhibition computation complexity

View File

@ -75,7 +75,7 @@ preceding duration.
amtool silence query --within 2h --expired
returns all silences that expired within the preceeding 2 hours.
returns all silences that expired within the preceding 2 hours.
`
func configureSilenceQueryCmd(cc *kingpin.CmdClause) {

View File

@ -78,7 +78,7 @@ func (c *routingShow) routingTestAction(ctx context.Context, _ *kingpin.ParseCon
mainRoute := dispatch.NewRoute(cfg.Route, nil)
// Parse lables to LabelSet.
// Parse labels to LabelSet.
ls, err := parseLabels(c.labels)
if err != nil {
kingpin.Fatalf("Failed to parse labels: %v\n", err)

View File

@ -53,7 +53,7 @@ func newDelegate(l log.Logger, reg prometheus.Registerer, p *Peer, retransmit in
}
messagesReceived := prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "alertmanager_cluster_messages_received_total",
Help: "Total number of cluster messsages received.",
Help: "Total number of cluster messages received.",
}, []string{"msg_type"})
messagesReceivedSize := prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "alertmanager_cluster_messages_received_size_total",
@ -61,7 +61,7 @@ func newDelegate(l log.Logger, reg prometheus.Registerer, p *Peer, retransmit in
}, []string{"msg_type"})
messagesSent := prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "alertmanager_cluster_messages_sent_total",
Help: "Total number of cluster messsages sent.",
Help: "Total number of cluster messages sent.",
}, []string{"msg_type"})
messagesSentSize := prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "alertmanager_cluster_messages_sent_size_total",
@ -69,7 +69,7 @@ func newDelegate(l log.Logger, reg prometheus.Registerer, p *Peer, retransmit in
}, []string{"msg_type"})
messagesPruned := prometheus.NewCounter(prometheus.CounterOpts{
Name: "alertmanager_cluster_messages_pruned_total",
Help: "Total number of cluster messsages pruned.",
Help: "Total number of cluster messages pruned.",
})
gossipClusterMembers := prometheus.NewGaugeFunc(prometheus.GaugeOpts{
Name: "alertmanager_cluster_members",
@ -91,7 +91,7 @@ func newDelegate(l log.Logger, reg prometheus.Registerer, p *Peer, retransmit in
})
messagesQueued := prometheus.NewGaugeFunc(prometheus.GaugeOpts{
Name: "alertmanager_cluster_messages_queued",
Help: "Number of cluster messsages which are queued.",
Help: "Number of cluster messages which are queued.",
}, func() float64 {
return float64(bcast.NumQueued())
})

View File

@ -958,8 +958,8 @@ func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
}
func (n *Hipchat) retry(statusCode int) (bool, error) {
// Response codes 429 (rate limiting) and 5xx can potentially recover. 2xx
// responce codes indicate successful requests.
// Response codes 429 (rate limiting) and 5xx can potentially recover.
// 2xx response codes indicate successful requests.
// https://developer.atlassian.com/hipchat/guide/hipchat-rest-api/api-response-codes
if statusCode/100 != 2 {
return (statusCode == 429 || statusCode/100 == 5), fmt.Errorf("unexpected status code %v", statusCode)

View File

@ -48,7 +48,7 @@ type AcceptanceTest struct {
actions map[float64][]func()
}
// AcceptanceOpts defines configuration paramters for an acceptance test.
// AcceptanceOpts defines configuration parameters for an acceptance test.
type AcceptanceOpts struct {
RoutePrefix string
Tolerance time.Duration

View File

@ -121,7 +121,7 @@ receivers:
// Create a new acceptance test that instantiates new Alertmanagers
// with the given configuration and verifies times with the given
// tollerance.
// tolerance.
at := NewAcceptanceTest(t, &AcceptanceOpts{
Tolerance: 150 * time.Millisecond,
})

View File

@ -160,7 +160,7 @@ func Alert(keyval ...interface{}) *TestAlert {
}
// nativeAlert converts the declared test alert into a full alert based
// on the given paramters.
// on the given parameters.
func (a *TestAlert) nativeAlert(opts *AcceptanceOpts) *model.Alert {
na := &model.Alert{
Labels: a.labels,

View File

@ -51,7 +51,7 @@ type AcceptanceTest struct {
actions map[float64][]func()
}
// AcceptanceOpts defines configuration paramters for an acceptance test.
// AcceptanceOpts defines configuration parameters for an acceptance test.
type AcceptanceOpts struct {
RoutePrefix string
Tolerance time.Duration

View File

@ -126,7 +126,7 @@ receivers:
// Create a new acceptance test that instantiates new Alertmanagers
// with the given configuration and verifies times with the given
// tollerance.
// tolerance.
at := NewAcceptanceTest(t, &AcceptanceOpts{
Tolerance: 150 * time.Millisecond,
})