From 0c7010a94d69a51665f0e45a2249ada3b1f7b199 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 7 Jan 2019 15:23:43 +0700 Subject: influxdb: add tag HTTP method Each endpoint (http_url) may have two or more HTTP methods on them. --- influxdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb.go b/influxdb.go index 7274974..03e983e 100644 --- a/influxdb.go +++ b/influxdb.go @@ -19,7 +19,7 @@ const ( // tags "host=%q," + "frontend=%q,backend=%q,server=%q," + - "tag_http_status=%d,tag_http_url=%s" + + "tag_http_status=%d,tag_http_url=%s,tag_http_method=%s" + " " + // fields "http_proto=%q,http_method=%q,http_url=%q," + @@ -123,7 +123,7 @@ func (cl *InfluxdbClient) write(halogs []*Halog) (err error) { // tags cl.hostname, l.FrontendName, l.BackendName, l.ServerName, - l.HTTPStatus, l.tagHTTPURL, + l.HTTPStatus, l.tagHTTPURL, l.HTTPMethod, // fields l.HTTPProto, l.HTTPMethod, l.HTTPURL, l.HTTPQuery, l.HTTPStatus, -- cgit v1.3