milvus/internal/metrics
Eng Zer Jun 438790744d
test: use T.Setenv to set env vars in tests (#19649)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-10-11 18:43:23 +08:00
..
datacoord_metrics.go Fix bugs in monitoring metrics (#17894) 2022-06-30 17:26:19 +08:00
datanode_metrics.go Add quotaCenter, rateLimiter and rateCollector (#18636) 2022-09-16 09:56:47 +08:00
etcd_metrics.go Add metrics for etcd (#18962) 2022-09-02 17:46:59 +08:00
indexcoord_metrics.go Fix bug for statistical metrics is incorrect (#19357) 2022-09-28 11:02:54 +08:00
indexnode_metrics.go Simplify monitoring metrics (#16687) 2022-04-27 23:03:47 +08:00
metrics_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
metrics.go Support Role-Based Access Control (#18425) 2022-08-04 11:04:34 +08:00
proxy_metrics.go Add quotaCenter, rateLimiter and rateCollector (#18636) 2022-09-16 09:56:47 +08:00
querycoord_metrics.go Add metrics for proxy and querynode (#17205) 2022-05-27 14:12:01 +08:00
querynode_metrics.go Add quotaCenter, rateLimiter and rateCollector (#18636) 2022-09-16 09:56:47 +08:00
rootcoord_metrics.go Support Role-Based Access Control (#18425) 2022-08-04 11:04:34 +08:00