fix a typo
This commit is contained in:
parent
017d7e5b18
commit
24f36b2732
|
@ -72,7 +72,7 @@ func (b *BarChart) consumeSample(sample *data.Sample) {
|
|||
|
||||
if err != nil {
|
||||
b.AlertChannel <- &data.Alert{
|
||||
Title: "FAILED TO PARSE NUMBER",
|
||||
Title: "FAILED TO PARSE A NUMBER",
|
||||
Text: err.Error(),
|
||||
Color: sample.Color,
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ func (g *Gauge) ConsumeSample(sample *data.Sample) {
|
|||
float, err := strconv.ParseFloat(sample.Value, 64)
|
||||
if err != nil {
|
||||
g.AlertChannel <- &data.Alert{
|
||||
Title: "FAILED TO PARSE NUMBER",
|
||||
Title: "FAILED TO PARSE A NUMBER",
|
||||
Text: err.Error(),
|
||||
Color: sample.Color,
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ func (c *RunChart) consumeSample(sample *data.Sample) {
|
|||
|
||||
if err != nil {
|
||||
c.AlertChannel <- &data.Alert{
|
||||
Title: "FAILED TO PARSE NUMBER",
|
||||
Title: "FAILED TO PARSE A NUMBER",
|
||||
Text: err.Error(),
|
||||
Color: sample.Color,
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ func (s *SparkLine) consumeSample(sample *data.Sample) {
|
|||
|
||||
if err != nil {
|
||||
s.AlertChannel <- &data.Alert{
|
||||
Title: "FAILED TO PARSE NUMBER",
|
||||
Title: "FAILED TO PARSE A NUMBER",
|
||||
Text: err.Error(),
|
||||
Color: sample.Color,
|
||||
}
|
||||
|
|
|
@ -89,6 +89,6 @@ sparklines:
|
|||
scale: 0
|
||||
value: ps -A -o %cpu | awk '{s+=$1} END {print s}'
|
||||
- title: Memory pages free
|
||||
position: [[27, 27], [25, 5]]
|
||||
position: [[27, 22], [25, 7]]
|
||||
scale: 0
|
||||
value: memory_pressure | grep 'Pages free' | awk '{print $3}'
|
||||
|
|
Loading…
Reference in New Issue