Skip to content

Commit

Permalink
Merge pull request #467 from bboreham/ip-error-metric-label
Browse files Browse the repository at this point in the history
Remove error message from Prometheus labels
  • Loading branch information
Claes Mogren authored May 13, 2019
2 parents 1bd1c5b + 39ee3db commit 15beb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipamd/ipamd.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var (
Name: "awscni_ipamd_error_count",
Help: "The number of errors encountered in ipamd",
},
[]string{"fn", "error"},
[]string{"fn"},
)
ipamdActionsInprogress = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Expand Down Expand Up @@ -807,7 +807,7 @@ func (c *IPAMContext) nodeIPPoolTooHigh() bool {
}

func ipamdErrInc(fn string, err error) {
ipamdErr.With(prometheus.Labels{"fn": fn, "error": err.Error()}).Inc()
ipamdErr.With(prometheus.Labels{"fn": fn}).Inc()
}

// nodeIPPoolReconcile reconcile ENI and IP info from metadata service and IP addresses in datastore
Expand Down

0 comments on commit 15beb99

Please sign in to comment.