Skip to content

Releases: Llandy3d/pytheus

0.5.0

08 Oct 01:13
Compare
Choose a tag to compare

What's Changed


  • New improved implementation of _generate_samples for MultiProcessRedisBackend:

    • Improved performance for generating metrics
    • Fixed a bug where on multiprocess on some scrapes a metric wouldn't be picked up due to missing local collector child
    • Now on labeled metrics, the labels/value combination will be initialized to 0 if it doesn't exists (before only the key would be initialized)
  • Redis keys expire time can now be configured via the expire_key_time config passed when loading the backend

  • Experimental prometheus_client patching in-place to quickly test the library on existing codebases

  • DEPRECATED: key_prefix for redis configuration. Prefer a side-car container or a separate redis/redis db per service.

0.4.0

03 Oct 18:39
Compare
Choose a tag to compare

What's Changed

  • python 3.12 support

0.3.0

01 Oct 14:57
Compare
Choose a tag to compare

What's Changed

  • fix generate_metrics to handle custom collectors by @Llandy3d in #48

0.2.0

14 Jul 22:14
Compare
Choose a tag to compare

What's Changed

  • support for kwargs in labels() by @Llandy3d in #46

    kwargs (keyword arguments) support for the labels() method.

    metric = Counter("counter", "desc", required_labels=["method"])
    
    # dict approach
    metric.labels({"method": "POST"})
    
    # kwargs approach
    metric.labels(method="POST")

0.1.0

16 Jun 22:13
Compare
Choose a tag to compare

What's Changed

All the core functionality of the library it's stable and this deserves a version bump 🥳

0.0.16

11 Jun 22:00
Compare
Choose a tag to compare

What's Changed

0.0.15

03 Jun 01:45
Compare
Choose a tag to compare

What's Changed

0.0.14

01 Jun 23:32
Compare
Choose a tag to compare

What's Changed

0.0.13

14 May 20:47
Compare
Choose a tag to compare

What's Changed

  • Multiprocess redis scrape improvement by @Llandy3d in #35
  • Support for _generate_samples in Backend

0.0.12

01 May 23:37
Compare
Choose a tag to compare

What's Changed

  • Escape help & label_values during exposition by @Llandy3d in #29
  • Add key_prefix config support to MultiProcessRedisBackend by @Llandy3d in #33

Full Changelog: 0.0.11...0.0.12