Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit ee77e88

Browse files
committedApr 10, 2019
remove log-min-dur
introduced via 929513c / #174 became obsolete in b3d3831 / #575 / 0.7.1-61-gbe64803e we no longer really log requests ourselves anymore. i imagine at some point we probably will, at which point we can re-introduce this setting (our qa tool `unused` notified that this variable wasn't being read anywhere)
1 parent ebcbb7b commit ee77e88

File tree

9 files changed

+0
-22
lines changed

9 files changed

+0
-22
lines changed
 

‎api/config.go

-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ var (
1616
maxPointsPerReqSoft int
1717
maxPointsPerReqHard int
1818
maxSeriesPerReq int
19-
logMinDurStr string
20-
logMinDur uint32
2119

2220
Addr string
2321
UseSSL bool
@@ -41,8 +39,6 @@ func ConfigSetup() {
4139
apiCfg.IntVar(&maxPointsPerReqSoft, "max-points-per-req-soft", 1000000, "lower resolution rollups will be used to try and keep requests below this number of datapoints. (0 disables limit)")
4240
apiCfg.IntVar(&maxPointsPerReqHard, "max-points-per-req-hard", 20000000, "limit of number of datapoints a request can return. Requests that exceed this limit will be rejected. (0 disables limit)")
4341
apiCfg.IntVar(&maxSeriesPerReq, "max-series-per-req", 250000, "limit of number of series a request can operate on. Requests that exceed this limit will be rejected. (0 disables limit)")
44-
apiCfg.StringVar(&logMinDurStr, "log-min-dur", "5min", "only log incoming requests if their timerange is at least this duration. Use 0 to disable")
45-
4642
apiCfg.StringVar(&Addr, "listen", ":6060", "http listener address.")
4743
apiCfg.BoolVar(&UseSSL, "ssl", false, "use HTTPS")
4844
apiCfg.BoolVar(&useGzip, "gzip", true, "use GZIP compression of all responses")
@@ -58,8 +54,6 @@ func ConfigSetup() {
5854
}
5955

6056
func ConfigProcess() {
61-
logMinDur = dur.MustParseDuration("log-min-dur", logMinDurStr)
62-
6357
//validate the addr
6458
_, err := net.ResolveTCPAddr("tcp", Addr)
6559
if err != nil {

‎docker/docker-chaos/metrictank.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://graphite
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎docker/docker-cluster-query/metrictank.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://graphite
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎docker/docker-cluster/metrictank.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://graphite
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎docker/docker-dev-custom-cfg-kafka/metrictank.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://graphite
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎docs/config.md

-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ max-series-per-req = 250000
237237
multi-tenant = true
238238
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
239239
fallback-graphite-addr = http://localhost:8080
240-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
241-
log-min-dur = 5min
242240
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
243241
time-zone = local
244242
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎metrictank-sample.ini

-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ max-series-per-req = 250000
195195
multi-tenant = true
196196
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
197197
fallback-graphite-addr = http://localhost:8080
198-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
199-
log-min-dur = 5min
200198
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
201199
time-zone = local
202200
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎scripts/config/metrictank-docker.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://graphite
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

‎scripts/config/metrictank-package.ini

-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ max-series-per-req = 250000
192192
multi-tenant = true
193193
# in case our /render endpoint does not support the requested processing, proxy the request to this graphite
194194
fallback-graphite-addr = http://localhost:8080
195-
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
196-
log-min-dur = 5min
197195
# timezone for interpreting from/until values when needed, specified using [zoneinfo name](https://en.wikipedia.org/wiki/Tz_database#Names_of_time_zones) e.g. 'America/New_York', 'UTC' or 'local' to use local server timezone.
198196
time-zone = local
199197
# maximum number of concurrent threads for fetching data on the local node. Each thread handles a single series.

0 commit comments

Comments
 (0)
This repository has been archived.