Skip to content

Commit a2d7b55

Browse files
committed
fix: correct unit descriptions
1 parent b78227c commit a2d7b55

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/slowlog_check.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,17 @@ def metric_metadatas
247247
"statsd_interval" => 60,
248248
"per_unit" => nil,
249249
"type" => "gauge",
250-
"unit" => "µs"
250+
"unit" => "microsecond"
251251
}
252252
}.push(
253253
{
254254
"name" => @metricname + '.count',
255255
"type" => 'rate',
256256
"description" => 'slowlog entries per minute',
257257
"short_name" => 'per minute',
258-
"per_unit" => 'entry',
258+
"per_unit" => 'minute',
259259
"integration" => nil,
260-
"unit" => 'entries',
260+
"unit" => 'entry',
261261
"statsd_interval" => 60
262262
}
263263
)

spec/slowlog_check_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
"statsd_interval"=>60,
281281
"per_unit"=>nil,
282282
"type"=>"gauge",
283-
"unit"=>"µs"
283+
"unit"=>"microsecond"
284284
}
285285
]
286286
}
@@ -295,9 +295,9 @@
295295
"short_name"=>"per minute",
296296
"integration"=>nil,
297297
"statsd_interval"=>60,
298-
"per_unit"=>"entry",
298+
"per_unit"=>"minute",
299299
"type"=>"rate",
300-
"unit"=>"entries"
300+
"unit"=>"entry"
301301
}
302302
}
303303
it { is_expected.to contain_exactly(diff) }
@@ -309,11 +309,11 @@
309309
{
310310
description: 'slowlog entries per minute',
311311
integration: nil,
312-
per_unit: 'entry',
312+
per_unit: 'minute',
313313
short_name: 'per minute',
314314
statsd_interval: 60,
315315
type: 'rate',
316-
unit: 'entries'
316+
unit: 'entry'
317317
}
318318
}
319319
it 'sends the right data to datadog' do

0 commit comments

Comments
 (0)