diff --git a/apisix-master-0.rockspec b/apisix-master-0.rockspec index 439aa9cb046d..90327d61b262 100644 --- a/apisix-master-0.rockspec +++ b/apisix-master-0.rockspec @@ -51,7 +51,7 @@ dependencies = { "lua-resty-openidc = 1.7.6-3", "luafilesystem = 1.7.0-2", "api7-lua-tinyyaml = 0.4.4", - "nginx-lua-prometheus-api7 = 0.20230607-1", + "nginx-lua-prometheus-api7 = 0.20240201-1", "jsonschema = 0.9.8", "lua-resty-ipmatcher = 0.6.1", "lua-resty-kafka = 0.22-0", diff --git a/conf/config-default.yaml b/conf/config-default.yaml index 67c0d54d5b68..589552dcb834 100755 --- a/conf/config-default.yaml +++ b/conf/config-default.yaml @@ -600,7 +600,9 @@ plugin_attr: # Plugin attributes # - 100 # - 200 # - 500 - # expire: 86400 # the expiration time after metrics become inactive, unit: second + # expire: 0 # The expiration time after metrics become inactive, unit: second. + # 0 means the metrics will not expire + # We recommend using 600 If you need to set the expiration time server-info: # Plugin: server-info report_ttl: 60 # Set the TTL in seconds for server info in etcd. # Maximum: 86400. Minimum: 3.