diff options
| author | Shulhan <ms@kilabit.info> | 2019-01-07 15:23:43 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-01-07 15:23:43 +0700 |
| commit | 0c7010a94d69a51665f0e45a2249ada3b1f7b199 (patch) | |
| tree | ea2b6831cb5014224d1a255d92033208e4386561 | |
| parent | 00dbd5f801442a572ce14128be91202afb33237d (diff) | |
| download | haminer-0c7010a94d69a51665f0e45a2249ada3b1f7b199.tar.xz | |
influxdb: add tag HTTP method
Each endpoint (http_url) may have two or more HTTP methods on them.
| -rw-r--r-- | influxdb.go | 4 |
1 files 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, |
