Skip to content

Commit

Permalink
fix lint checks
Browse files Browse the repository at this point in the history
Signed-off-by: Шабакаев Илья Исмаилович <iishabakaev@gmail.com>
  • Loading branch information
iishabakaev committed Jan 21, 2023
1 parent 5500ee6 commit 96b4f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collector/ilm_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

var (
ilm_statuses = []string{"STOPPED", "RUNNING", "STOPPING"}
ilmStatuses = []string{"STOPPED", "RUNNING", "STOPPING"}
)

type ilmStatusMetric struct {
Expand Down Expand Up @@ -79,7 +79,7 @@ func NewIlmStatus(logger log.Logger, client *http.Client, url *url.URL) *IlmStat
Desc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "status"),
"Current status of ilm. Status can be STOPPED, RUNNING, STOPPING.",
ilm_statuses, nil,
ilmStatuses, nil,
),
Value: func(ilm *IlmStatusResponse, status string) float64 {
if ilm.OperationMode == status {
Expand Down Expand Up @@ -155,7 +155,7 @@ func (im *IlmStatusCollector) Collect(ch chan<- prometheus.Metric) {
}
im.up.Set(1)

for _, status := range ilm_statuses {
for _, status := range ilmStatuses {
ch <- prometheus.MustNewConstMetric(
im.metric.Desc,
im.metric.Type,
Expand Down

0 comments on commit 96b4f36

Please sign in to comment.