Skip to content

Commit 7221d2a

Browse files
author
Lorenz Kästle
committed
Improve some option descriptions
1 parent acaeff9 commit 7221d2a

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

cmd/memory.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func init() {
288288
{
289289
Th: &MemoryConfig.MemFreePercentage.Crit,
290290
FlagString: "memory-free-critical-percentage",
291-
Description: "Critical threshold for free memory",
291+
Description: "Critical threshold for free memory (percentage)",
292292
},
293293
{
294294
Th: &MemoryConfig.MemUsed.Warn,
@@ -303,12 +303,12 @@ func init() {
303303
{
304304
Th: &MemoryConfig.MemUsedPercentage.Warn,
305305
FlagString: "memory-used-warning-percentage",
306-
Description: "Warning threshold for used memory",
306+
Description: "Warning threshold for used memory (percentage)",
307307
},
308308
{
309309
Th: &MemoryConfig.MemUsedPercentage.Crit,
310310
FlagString: "memory-used-critical-percentage",
311-
Description: "Critical threshold for used memory",
311+
Description: "Critical threshold for used memory (percentage)",
312312
},
313313
{
314314
Th: &MemoryConfig.MemAvailable.Warn,
@@ -323,7 +323,7 @@ func init() {
323323
{
324324
Th: &MemoryConfig.MemAvailablePercentage.Warn,
325325
FlagString: "memory-available-warning-percentage",
326-
Description: "Warning threshold for available memory",
326+
Description: "Warning threshold for available memory (percentage)",
327327
Default: thresholds.ThresholdWrapper{
328328
IsSet: true,
329329
Th: check.Threshold{
@@ -335,7 +335,7 @@ func init() {
335335
{
336336
Th: &MemoryConfig.MemAvailablePercentage.Crit,
337337
FlagString: "memory-available-critical-percentage",
338-
Description: "Critical threshold for available memory",
338+
Description: "Critical threshold for available memory (percentage)",
339339
Default: thresholds.ThresholdWrapper{
340340
IsSet: true,
341341
Th: check.Threshold{
@@ -347,38 +347,38 @@ func init() {
347347
{
348348
Th: &MemoryConfig.SwapFree.Warn,
349349
FlagString: "swap-free-warning",
350-
Description: "Warning threshold for free memory",
350+
Description: "Warning threshold for free swap memory",
351351
},
352352
{
353353
Th: &MemoryConfig.SwapFree.Crit,
354354
FlagString: "swap-free-critical",
355-
Description: "Critical threshold for free memory",
355+
Description: "Critical threshold for free swap memory",
356356
},
357357
{
358358
Th: &MemoryConfig.SwapFreePercentage.Warn,
359359
FlagString: "swap-free-warning-percentage",
360-
Description: "Warning threshold for free memory",
360+
Description: "Warning threshold for free swap memory (percentage)",
361361
},
362362
{
363363
Th: &MemoryConfig.SwapFreePercentage.Crit,
364364
FlagString: "swap-free-critical-percentage",
365-
Description: "Critical threshold for free memory",
365+
Description: "Critical threshold for free swap memory (percentage)",
366366
},
367367

368368
{
369369
Th: &MemoryConfig.SwapUsed.Warn,
370370
FlagString: "swap-used-warning",
371-
Description: "Warning threshold for used memory",
371+
Description: "Warning threshold for used swap memory",
372372
},
373373
{
374374
Th: &MemoryConfig.SwapUsed.Crit,
375375
FlagString: "swap-used-critical",
376-
Description: "Critical threshold for used memory",
376+
Description: "Critical threshold for used swap memory",
377377
},
378378
{
379379
Th: &MemoryConfig.SwapUsedPercentage.Warn,
380380
FlagString: "swap-used-warning-percentage",
381-
Description: "Warning threshold for used memory",
381+
Description: "Warning threshold for used swap memory (percentage)",
382382
Default: thresholds.ThresholdWrapper{
383383
IsSet: true,
384384
Th: check.Threshold{
@@ -390,7 +390,7 @@ func init() {
390390
{
391391
Th: &MemoryConfig.SwapUsedPercentage.Crit,
392392
FlagString: "swap-used-critical-percentage",
393-
Description: "Critical threshold for used memory",
393+
Description: "Critical threshold for used swap memory (percentage)",
394394
Default: thresholds.ThresholdWrapper{
395395
IsSet: true,
396396
Th: check.Threshold{

0 commit comments

Comments
 (0)