Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: Llandy3d/pytheus

0.6.1

26 Jun 22:29

Choose a tag to compare

Type hints fixes.

What's Changed

  • fix: Mypy not recognising type annotations by @khvn26 in #61
  • change labels() method return type by @pradishb in #58

0.6.0

09 Mar 01:17

Choose a tag to compare

I shall always be ashamed of making this release on github 5 months after the actual release was done 🐢

What's Changed

  • add support for python 3.13

0.5.0

08 Oct 01:13

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

Choose a tag to compare

What's Changed

  • python 3.12 support

0.3.0

01 Oct 14:57

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

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

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

Choose a tag to compare

What's Changed

0.0.15

03 Jun 01:45

Choose a tag to compare

What's Changed

0.0.14

01 Jun 23:32

Choose a tag to compare

What's Changed