Remove prometheus labels with high cardinality
This commit is contained in:
parent
c0ed143fbd
commit
6c8647a27d
3 changed files with 8 additions and 27 deletions
|
|
@ -28,13 +28,10 @@ describe("Monitor", function()
|
|||
local nginx_environment = {
|
||||
host = "testshop.com",
|
||||
status = "200",
|
||||
remote_addr = "10.10.10.10",
|
||||
realip_remote_addr = "5.5.5.5",
|
||||
remote_user = "admin",
|
||||
bytes_sent = "150",
|
||||
server_protocol = "HTTP",
|
||||
request_method = "GET",
|
||||
uri = "/admin",
|
||||
location_path = "/admin",
|
||||
request_length = "300",
|
||||
request_time = "60",
|
||||
proxy_upstream_name = "test-upstream",
|
||||
|
|
@ -54,13 +51,10 @@ describe("Monitor", function()
|
|||
local expected_json_stats = {
|
||||
host = "testshop.com",
|
||||
status = "200",
|
||||
remoteAddr = "10.10.10.10",
|
||||
realIpAddr = "5.5.5.5",
|
||||
remoteUser = "admin",
|
||||
bytesSent = 150.0,
|
||||
protocol = "HTTP",
|
||||
method = "GET",
|
||||
uri = "/admin",
|
||||
path = "/admin",
|
||||
requestLength = 300.0,
|
||||
requestTime = 60.0,
|
||||
upstreamName = "test-upstream",
|
||||
|
|
@ -82,7 +76,7 @@ describe("Monitor", function()
|
|||
remote_user = "francisco",
|
||||
server_protocol = "HTTP",
|
||||
request_method = "GET",
|
||||
uri = "/admin",
|
||||
location_path = "/admin",
|
||||
request_time = "60",
|
||||
proxy_upstream_name = "test-upstream",
|
||||
upstream_addr = "2.2.2.2",
|
||||
|
|
@ -99,13 +93,10 @@ describe("Monitor", function()
|
|||
local expected_json_stats = {
|
||||
host = "-",
|
||||
status = "-",
|
||||
remoteAddr = "10.10.10.10",
|
||||
realIpAddr = "5.5.5.5",
|
||||
remoteUser = "francisco",
|
||||
bytesSent = -1,
|
||||
protocol = "HTTP",
|
||||
method = "GET",
|
||||
uri = "/admin",
|
||||
path = "/admin",
|
||||
requestLength = -1,
|
||||
requestTime = 60.0,
|
||||
upstreamName = "test-upstream",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue