diff --git a/apisix/plugins/prometheus/exporter.lua b/apisix/plugins/prometheus/exporter.lua index 35191992..45a79c5e 100644 --- a/apisix/plugins/prometheus/exporter.lua +++ b/apisix/plugins/prometheus/exporter.lua @@ -207,7 +207,7 @@ local function set_modify_index(key, items, items_ver, global_max_index) if items_ver and items then for _, item in ipairs(items) do if type(item) == "table" then - local modify_index = item.modifiedIndex_org or item.modifiedIndex + local modify_index = item.modifiedIndex if modify_index > max_idx then max_idx = modify_index end