-
Notifications
You must be signed in to change notification settings - Fork 841
Comparing changes
Open a pull request
base repository: prometheus/client_python
base: v0.22.1
head repository: prometheus/client_python
compare: v0.23.0
- 18 commits
- 18 files changed
- 8 contributors
Commits on Jun 12, 2025
-
Part of #1013 Signed-off-by: Owen Williams <owen.williams@grafana.com>
Configuration menu - View commit details
-
Copy full SHA for 831ed02 - Browse repository at this point
Copy the full SHA 831ed02View commit details -
Merge pull request #1102 from prometheus/owilliams/utf8-02
UTF-8 Content Negotiation
Configuration menu - View commit details
-
Copy full SHA for a6726a4 - Browse repository at this point
Copy the full SHA a6726a4View commit details -
Fix including test data (#1113)
Readd parts of `MANIFEST.in` responsible for including the test data in the source distribution. Without that, setuptools includes only `.py` files from the test tree, leading to test failures. Fixes #1112 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Configuration menu - View commit details
-
Copy full SHA for 6f19d31 - Browse repository at this point
Copy the full SHA 6f19d31View commit details
Commits on Jul 3, 2025
-
Add benchmark for text_string_to_metric_families
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 09b0826 - Browse repository at this point
Copy the full SHA 09b0826View commit details -
When searching for label end start the search after the label start
This saves ~10% in the benchmark. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fb5f6d7 - Browse repository at this point
Copy the full SHA fb5f6d7View commit details -
Enumerate over text when finding unquoted char
Enumerating rather than using a while loop saves significant CPU when looking for an unquoted character. This ends up improving the benchmark ~20% on its own. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 119f1c2 - Browse repository at this point
Copy the full SHA 119f1c2View commit details -
Avoid unnecessary iterating across the same term
Split the term into the label name and label value portions in one swoop rather than starting from the beginning to find an = character after already going through the full term. This saves ~5% on the benchmark. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a2ca52 - Browse repository at this point
Copy the full SHA 2a2ca52View commit details
Commits on Jul 8, 2025
-
Add benchmark for text_string_to_metric_families (#1116)
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f915160 - Browse repository at this point
Copy the full SHA f915160View commit details -
Merge pull request #1117 from prometheus/optimize-parser
Optimize parser
Configuration menu - View commit details
-
Copy full SHA for 26da805 - Browse repository at this point
Copy the full SHA 26da805View commit details
Commits on Jul 11, 2025
-
Add support to
write_to_textfilefor custom tmpdir (#1115)* Add support to write_to_textfile for custom tmpdir While the try/except block does prevent most of the temp files from persisting, if there is a non catchable exception, those temp files continue to pollute the directory. Optionally set the temp directory would let us write to something like /tmp, so the target directory isn't polluted Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org> * Modify write_to_textfile to ensure tmpdir is on same filesystem The tmpdir must be on the same filesystem to ensure an atomic operation takes place. If this is not enforced, there could be partial writes which can lead to partial/incorrect metrics being exported Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org> --------- Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
Configuration menu - View commit details
-
Copy full SHA for 7368028 - Browse repository at this point
Copy the full SHA 7368028View commit details
Commits on Aug 20, 2025
-
OM text exposition for NH (#1087)
* Start implement OM text exposition for nh, add first no obs test * Correct template for nh sample spans, add test * Correct templating and appending for deltas, add longer spans test * Add tests for nh with labels, remove labels sorting * Break down logic classic vs nh samples, add tests for classic-native histograms cohabitation * Move classic sample logic back to where it belongs * Assign nh to value, correct nil values in tests, clean up white spaces * Add logic for exposing nh exemplars * Please linters * Assign nh_exemplars to exemplarstr * Add Any type to metric_family in OM exposition test * Change printing order of nh spans and deltas according to OM 2.0 proposal * Shorten name of spans and deltas as per OM 2.0 proposal * Adapt nh with UTF-8 tests to new testing framework * Update prometheus_client/openmetrics/exposition.py * Update prometheus_client/openmetrics/exposition.py * Eliminate erroneous abbreviation for spans and deltas --------- Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it> Signed-off-by: Arianna Vespri <36129782+vesari@users.noreply.github.com> Co-authored-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f48aea4 - Browse repository at this point
Copy the full SHA f48aea4View commit details
Commits on Sep 3, 2025
-
... to the latest version available now. Also, do not pin bugfix version because any bugfix update is supposed to bring no breaking fix. Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
Configuration menu - View commit details
-
Copy full SHA for d358f46 - Browse repository at this point
Copy the full SHA d358f46View commit details -
Fix bug which caused metric publishing to not accept query string par…
…ameters in ASGI app (#1125) * fix query string encoding in asgi app Signed-off-by: hack <hacksparr0w@protonmail.com> * isolate the asgi qs encoding bug into a test case Signed-off-by: hacksparr0w <hacksparr0w@protonmail.com> --------- Signed-off-by: hack <hacksparr0w@protonmail.com> Signed-off-by: hacksparr0w <hacksparr0w@protonmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9e3eb6c - Browse repository at this point
Copy the full SHA 9e3eb6cView commit details
Commits on Sep 4, 2025
-
Emit native histograms only when OM 2.0.0 is requested (#1128)
* Emit NH only if OM 2.0.0 is requested Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it> * Adjust logic, add version comparison tests for NH Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it> * Skip nh sample earlier in the logic Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it> --------- Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
Configuration menu - View commit details
-
Copy full SHA for 3586355 - Browse repository at this point
Copy the full SHA 3586355View commit details
Commits on Sep 8, 2025
-
fix: remove space after comma in openmetrics exposition (#1132)
OpenMetrics doesn't allow for spaces between labels and prometheus fails with a parsing error. Removing this fixes UTF8 metrics exposition Signed-off-by: Dominik Süß <dominik@suess.wtf>
Configuration menu - View commit details
-
Copy full SHA for 4de31ee - Browse repository at this point
Copy the full SHA 4de31eeView commit details -
Do not use global when only reading variable (#1133)
The global keyword is only necessary when writing to a variable, this will fix the lint failures that came with a newer version of flake8. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 47d2b41 - Browse repository at this point
Copy the full SHA 47d2b41View commit details
Commits on Sep 11, 2025
-
Fix issue parsing double spaces after # HELP/# TYPE (#1134)
A regression was reported for 0.22.x where if there are two spaces after HELP or TEXT we would raise a value error. This was caused by having an extra entry in our array of splits due to how we preocess the splits. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b3fbbca - Browse repository at this point
Copy the full SHA b3fbbcaView commit details -
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b9e78a3 - Browse repository at this point
Copy the full SHA b9e78a3View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.22.1...v0.23.0