diff options
| author | Shulhan <ms@kilabit.info> | 2019-01-04 11:19:12 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-01-04 15:15:35 +0700 |
| commit | 536cbbc21906ab96032e5bdaf2fe443a55691b2e (patch) | |
| tree | 9109868eba3d05bc6b79e00e0e02974a08ba6206 | |
| parent | d7739491bdadf7b936095dcc2ba09f57e2f3a322 (diff) | |
| download | haminer-536cbbc21906ab96032e5bdaf2fe443a55691b2e.tar.xz | |
influxdb: add http_url to tag
| -rw-r--r-- | influxdb.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/influxdb.go b/influxdb.go index badadbe..8952007 100644 --- a/influxdb.go +++ b/influxdb.go @@ -19,7 +19,7 @@ const ( // tags "host=%q," + "frontend=%q,backend=%q,server=%q," + - "http_status_code=%d" + + "http_status_code=%d,tag_http_url=%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.HTTPStatus, l.tagHTTPURL, // fields l.HTTPProto, l.HTTPMethod, l.HTTPURL, l.HTTPQuery, l.HTTPStatus, |
