aboutsummaryrefslogtreecommitdiff
path: root/influxdb.go
diff options
context:
space:
mode:
Diffstat (limited to 'influxdb.go')
-rw-r--r--influxdb.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/influxdb.go b/influxdb.go
index de25f4a..d266100 100644
--- a/influxdb.go
+++ b/influxdb.go
@@ -18,7 +18,8 @@ const (
"haproxy," +
// tags
"host=%q," +
- "frontend=%q,backend=%q,server=%q" +
+ "frontend=%q,backend=%q,server=%q," +
+ "http_status_code=%d" +
" " +
// fields
"http_proto=%q,http_method=%q,http_url=%q," +
@@ -122,6 +123,7 @@ func (cl *InfluxdbClient) write(halogs []*Halog) (err error) {
// tags
cl.hostname,
l.FrontendName, l.BackendName, l.ServerName,
+ l.HTTPStatus,
// fields
l.HTTPProto, l.HTTPMethod, l.HTTPURL,
l.HTTPQuery, l.HTTPStatus,