Skip to content

Latest commit

 

History

History
107 lines (71 loc) · 3.43 KB

CHANGELOG.md

File metadata and controls

107 lines (71 loc) · 3.43 KB

Changelog

This file only calls out major changes. Please see the list of Git commits for the full list of changes.

1.2.0

  • Accept an optional error_metric_labels map in metric_data() and collect() to label the built-in error metric on output. Errors are still counted under the bare name; an invalid map is logged, counted as an error, and the bare metric is output (#30).

1.1.1

  • Update a metric's pending increment in place instead of allocating a new entry on every incr() before sync(), which removes the per-call allocation for counters and histogram observations (#28).

1.1.0

  • Reuse expired index slots while their dictionary nodes still exist, avoid expiry-driven broadcasts, renew known slots without synchronizing the full index, and detect a re-created key_count (#25).
  • Stagger worker cleanup timers, skip slots whose deadlines have not passed, yield between groups of TTL checks, and log a cleanup timer that fails to start (#23).
  • Reclaim expired entries once per remove_expired_keys_interval for the whole dictionary instead of once per worker, and not at all while no metric has an exptime (#23).
  • Add the auto_flush_expired option to leave reclamation to the caller, and turn the cleanup off with a remove_expired_keys_interval of 0 or less (#23).

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.

0.20221218

  • Added escaping of newline characters in label values (#145).
  • Improved detection of LRU evictions (#147, #148).
  • Per-worker metric name lookup tables now have a bounded size aimed at preventing memory leaking in environments with high metric churn (#151).

0.20220527

Performance optimization aimed at decreasing impact that metric collection has on other requests (#139).

0.20220127

Performance optimization of metric collection (#131).

0.20210206

Bucket label values no longer have leading and trailing zeroes (#119).

0.20201218

Histogram metrics can now be reset (#112).

0.20201118

Allow utf8 label values (#110).

0.20200523

  • Scalability improvements that allow tracking a larger number of metrics without impacting nginx performance (#82).
  • Simplified library initialization, moving all of it to init_worker_by_lua_block.
  • Error metric name is now configurable (#91).

0.20200420

This is a significant release that includes counter performance improvements.

BREAKING CHANGE: this release requires additional per-worker initialization in the init_worker_by_lua_block section of nginx configuration.

  • Added support for incrementing and decrementing gauges (#52).
  • Added del and reset for gauge and counter metrics (#56).
  • Added per-worker lua counters that allow incrementing counter metrics without locking the dictionary (#75).

0.20181120

Added stream module support (#42).

0.20171117

Improved performance of metric collection (#25).

0.1-20170610

Initial version of the library.