Skip to content

Commit

Permalink
Make some Apache server status fields optional (elastic#3808)
Browse files Browse the repository at this point in the history
As they are not reported by some systems

Closes elastic#3074
  • Loading branch information
exekias committed Mar 27, 2017
1 parent 1b778ef commit 50626be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions metricbeat/module/apache/status/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ var (
"children_system": c.Float("CPUChildrenSystem"),
},
"connections": s.Object{
"total": c.Int("ConnsTotal"),
"total": c.Int("ConnsTotal", s.Optional),
"async": s.Object{
"writing": c.Int("ConnsAsyncWriting"),
"keep_alive": c.Int("ConnsAsyncKeepAlive"),
"closing": c.Int("ConnsAsyncClosing"),
"writing": c.Int("ConnsAsyncWriting", s.Optional),
"keep_alive": c.Int("ConnsAsyncKeepAlive", s.Optional),
"closing": c.Int("ConnsAsyncClosing", s.Optional),
},
},
"load": s.Object{
"1": c.Float("Load1"),
"5": c.Float("Load5"),
"15": c.Float("Load15"),
"1": c.Float("Load1", s.Optional),
"5": c.Float("Load5", s.Optional),
"15": c.Float("Load15", s.Optional),
},
}
)
Expand Down

0 comments on commit 50626be

Please sign in to comment.