From 493d70f77d22ef91103c15f9b64a2ab021994291 Mon Sep 17 00:00:00 2001 From: AlinsRan Date: Mon, 27 Jul 2026 17:47:32 +0800 Subject: [PATCH] feat: release v1.0.0 --- CHANGELOG.md | 13 ++++++++++++- README.md | 6 +++--- dist.ini | 8 ++++---- ...c => nginx-lua-prometheus-api7-1.0.0-1.rockspec} | 4 ++-- 4 files changed, 21 insertions(+), 10 deletions(-) rename rockspec/{nginx-lua-prometheus-api7-0.20260716-1.rockspec => nginx-lua-prometheus-api7-1.0.0-1.rockspec} (93%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 227623d..a467929 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,20 @@ # Changelog This file only calls out major changes. Please see [the list of Git commits]( -https://github.com/knyar/nginx-lua-prometheus/commits/master) for the full list +https://github.com/api7/nginx-lua-prometheus/commits/main) for the full list of changes. +## 1.0.0 + +Starting with this release, this fork (`nginx-lua-prometheus-api7`) uses +semantic versioning. Earlier releases used the upstream date-based scheme +(`0.YYYYMMDD`); as upstream is dormant and this fork is now maintained +independently, versions no longer track upstream snapshots. Date-based tags +before `1.0.0` are kept as-is. + +- Reclaim expired shared-dict entries in `remove_expired_keys()` so per-worker + metric key dictionaries no longer step down until the dict fills up (#18). + ## 0.20230607 Improved checking of label values. diff --git a/README.md b/README.md index a4e0b16..ff28be6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Coverage Status](https://coveralls.io/repos/github/knyar/nginx-lua-prometheus/badge.svg?branch=master)](https://coveralls.io/github/knyar/nginx-lua-prometheus?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/api7/nginx-lua-prometheus/badge.svg?branch=main)](https://coveralls.io/github/api7/nginx-lua-prometheus?branch=main) # Prometheus metric library for Nginx @@ -19,9 +19,9 @@ The library file - `prometheus.lua` - needs to be available in `LUA_PATH`. If this is the only Lua library you use, you can just point `lua_package_path` to the directory with this git repo checked out (see example below). -OpenResty users will find this library in [opm](https://opm.openresty.org/package/knyar/nginx-lua-prometheus/). It +OpenResty users will find this library in [opm](https://opm.openresty.org/package/api7/nginx-lua-prometheus-api7/). It is also available via -[luarocks](https://luarocks.org/modules/knyar/nginx-lua-prometheus). +[luarocks](https://luarocks.org/modules/membphis/nginx-lua-prometheus-api7). ## Quick start guide diff --git a/dist.ini b/dist.ini index 8390ad1..dc501e2 100644 --- a/dist.ini +++ b/dist.ini @@ -1,11 +1,11 @@ -name = nginx-lua-prometheus +name = nginx-lua-prometheus-api7 abstract = Prometheus metric library for Nginx -version = 0.20230607 +version = 1.0.0 author = Anton Tolchanov -is_original = yes +is_original = no license = mit lib_dir = . doc_dir = . main_module = prometheus.lua exclude_files = prometheus_test.lua, integration -repo_link = https://github.com/knyar/nginx-lua-prometheus +repo_link = https://github.com/api7/nginx-lua-prometheus diff --git a/rockspec/nginx-lua-prometheus-api7-0.20260716-1.rockspec b/rockspec/nginx-lua-prometheus-api7-1.0.0-1.rockspec similarity index 93% rename from rockspec/nginx-lua-prometheus-api7-0.20260716-1.rockspec rename to rockspec/nginx-lua-prometheus-api7-1.0.0-1.rockspec index a5971ee..ab3c5d3 100644 --- a/rockspec/nginx-lua-prometheus-api7-0.20260716-1.rockspec +++ b/rockspec/nginx-lua-prometheus-api7-1.0.0-1.rockspec @@ -1,11 +1,11 @@ -- Note, this file must have version in its name -- (see https://github.com/knyar/nginx-lua-prometheus/issues/27) package = "nginx-lua-prometheus-api7" -version = "0.20260716-1" +version = "1.0.0-1" source = { url = "git+https://github.com/api7/nginx-lua-prometheus.git", - tag = "0.20260716", + tag = "1.0.0", } description = {