client_python

Prometheus instrumentation library for Python applications

APACHE-2.0 License

Downloads
48M
Stars
3.8K
Committers
151
client_python - 0.20.0 / 2024-02-14 Latest Release

Published by csmarchbanks 8 months ago

What's Changed

  • [CHANGE/BUGFIX] Update OpenMetrics Content Type to 1.0.0. #997
  • [FEATURE] Enable graceful shutdown for start_{http,wsgi}_server by returning the server and thread. #999
  • [FEATURE] Allow resetting counter metrics. #1005
  • [BUGFIX] wsgi server: address family discovery is not quite right. #1006
client_python - 0.19.0 / 2023-11-20

Published by csmarchbanks 11 months ago

What's Changed

[FEATURE] support HTTPS/TLS in start_http_server. #946
[BUGFIX] fix: error in determining timestamp less than. #979

client_python - 0.18.0 / 2023-10-30

Published by csmarchbanks 12 months ago

[CHANGE] Remove support for Python versions < 3.8. #936
[FEATURE] Add mostrecent aggregation to Gauge. #967
[ENHANCEMENT] Typing improvements. #935, #970
[ENHANCEMENT] Allow enabling or disabling _created metrics from code. #973
[BUGFIX] Change #!/usr/bin/python to #!/usr/bin/env python in remaining places. #945

client_python - 0.17.1 / 2023-07-19

Published by csmarchbanks over 1 year ago

[BUGFIX] Use #!/usr/bin/env python instead of #!usr/bin/python in bridge/graphite.py. #928

client_python - 0.17.0 / 2023-05-24

Published by csmarchbanks over 1 year ago

[ENHANCEMENT] Add additional typing. #887, #903
[BUGFIX] Fix typo in python_gc_objects_collected metadata. #894
[BUGFIX] Do not include .pyc files in the build wheel. #906

client_python - 0.16.0 / 2023-01-23

Published by csmarchbanks over 1 year ago

[FEATURE] Support HELP text in multiprocess mode. #804
[ENHANCEMENT] Reduce the mmap minimum size. #853
[BUGFIX] Use the correct OpenMetrics encoder when application/openmetrics-text is requested in ASGI apps. #864
[BUGFIX] Allow Prometheus format parser to handle a missing space after labels. #872

client_python - 0.15.0 / 2022-10-13

Published by csmarchbanks about 2 years ago

[CHANGE] Remove choose_formatter. choose_formatter only existed for v0.14.x and was deprecated in v0.14.1. https://github.com/prometheus/client_python/pull/846
[FEATURE] Support TLS auth when using push gateway with tls_auth_handler. https://github.com/prometheus/client_python/pull/841
[ENHANCEMENT] Add sum, livemin, and livemax multiprocess modes for Gauges. https://github.com/prometheus/client_python/pull/794

client_python - 0.14.1 / 2022-04-08

Published by csmarchbanks over 2 years ago

[BUGFIX] Revert choose_encoder being renamed to choose_formatter to fix a breaking change. For the 0.14.x release cycle choose_formatter will still exist, but will be removed in 0.15.0. #796

client_python - 0.14.0 / 2022-04-05

Published by csmarchbanks over 2 years ago

[ENHANCEMENT] Continued typing improvements and coverage. #759, #771, #781
[ENHANCEMENT] Allow binding to IPv6 addresses. #657
[ENHANCEMENT] Negotiate gzip content-encoding, enabled by default. #776
[ENHANCEMENT] Allow disabling _created metrics via the PROMETHEUS_DISABLE_CREATED_SERIES environment variable. #774
[BUGFIX] Correct minor typo in exception raised when exemplar labels are too long. #773

client_python - 0.13.1 / 2022-01-28

Published by csmarchbanks over 2 years ago

[BUGFIX] Relax some type constraints that were too strict. #754, #755, #756, #758
[BUGFIX] Explicitly export functions with __all__. #757

client_python - 0.13.0 / 2022-01-25

Published by csmarchbanks over 2 years ago

[CHANGE] Drop support for Python versions 2.7, 3.4, and 3.5. #718
[FEATURE] Support adding labels when using .time() #730
[ENHANCEMENT] Begin to add type hints to functions. #705
[ENHANCEMENT] Improved go-to-declaration behavior for editors. #747
[BUGFIX] Remove trailing slashes from pushgateway URLS. #722
[BUGFIX] Catch non-integer bucket/count values. #726

client_python - 0.12.0 / 2021-10-29

Published by csmarchbanks almost 3 years ago

[FEATURE] Exemplar support (excludes multiprocess) #669
[ENHANCEMENT] Add support for Python 3.10 #706
[ENHANCEMENT] Restricted Registry will handle metrics added after restricting #675, #680
[ENHANCEMENT] Raise a more helpful error if a metric is not observable #666
[BUGFIX] Fix instance_ip_grouping_key not working on MacOS #687
[BUGFIX] Fix assertion error from favicion.ico with Python 2.7 #715

client_python - 0.11.0 / 2021-06-01

Published by csmarchbanks over 3 years ago

[CHANGE] Specify that the labelvalues argument on metric constructors is internal by renaming it to _labelvalues. If you are affected by this change, it is likely that the metric was not being registered. #660
[BUGFIX] write_to_textfile will overwrite files in windows. If using python 3.4 or newer the replace will be atomic. #650

client_python - 0.10.1 / 2021-04-08

Published by csmarchbanks over 3 years ago

[BUGFIX] Support lowercase prometheus_multiproc_dir environment variable in mark_process_dead. #644

client_python - 0.10.0 / 2021-04-02

Published by csmarchbanks over 3 years ago

  • [CHANGE] Python 2.6 is no longer supported. #592
  • [CHANGE] The prometheus_multiproc_dir environment variable is deprecated in favor of PROMETHEUS_MULTIPROC_DIR. #624
  • [FEATURE] Follow redirects when pushing to Pushgateway using passthrough_redirect_handler. #622
  • [FEATURE] Metrics support a clear() method to remove all children. #642
  • [ENHANCEMENT] Tag support in GraphiteBridge. #618
client_python - 0.9.0 / 2020-11-26

Published by brian-brazil almost 4 years ago

[ENHANCEMENT] Add support for python3.9 (#600)
[ENHANCEMENT] Various updates for latest OpenMetrics draft spec (#576 #577)

client_python - 0.8.0 / 2020-05-25

Published by brian-brazil over 4 years ago

[FEATURE] Added ASGI application (#512)
[FEATURE] Add support for parsing timestamps in Prometheus exposition format. (#483)
[FEATURE] Add target_info to registries (#453)
[ENHANCEMENT] Handle empty and slashes in label values for pushgateway (#547 #442)
[ENHANCEMENT] Various updates for latest OpenMetrics draft spec (#434 #445 #538 #460 #496)
[ENHANCEMENT] Add HELP output for auto-created metrics (#471)
[ENHANCEMENT] Use mmap.PAGESIZE constant as value for first read. (#505)
[ENHANCEMENT] Add __repr__ method to metric objects, make them debug friendly. (#481)
[ENHANCEMENT] Add observability check to metrics (#455 #520)
[BUGFIX] Fix urlparse in python >= 3.7.6 (#497)
[BUGFIX] Cleaning up name before appending unit on name (#543)
[BUGFIX] Allow for OSError on Google App Engine (#448)

client_python - 0.7.1 / 2019-06-20

Published by brian-brazil over 5 years ago

[BUGFIX] multiprocess: don't crash on missing gauge_live/sum files (#424)
[BUGFIX] correctly bind method on Python 2.x (#403)

client_python - 0.7.0 / 2019-06-07

Published by brian-brazil over 5 years ago

[ENHANCEMENT] Multiprocess exposition speed boost (#421)
[ENHANCEMENT] optimize openmetrics text parsing (~4x perf) (#402)
[ENHANCEMENT] Add python3.7 support (#418)
[ENHANCEMENT] Change exemplar length limit to be only for label names+values (#397)
[BUGFIX] Disable gcCollector for pypy (#380)

client_python - 0.6.0 / 2019-02-19

Published by brian-brazil over 5 years ago

[ENHANCEMENT] Better exceptions on exposition failure (#364)
[BUGFIX] Fix deadlock in gcCollector, metrics are now different (#371)
[BUGFIX] Fix thread leak in Python 3.7 (#356)
[BUGFIX] Make the format strings compatible with Python 2.6 (#361)
[BUGFIX] parser: ensure samples are of type Sample (#358)