Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).

Comment thread
AlinsRan marked this conversation as resolved.
## 0.20230607

Improved checking of label values.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
Loading