-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: pranavium/client_python
base: master
head repository: prometheus/client_python
compare: master
- 8 commits
- 20 files changed
- 5 contributors
Commits on Apr 9, 2026
-
docs: add API reference for all metric types (prometheus#1159)
* docs: add API reference for all metric types Adds constructor parameter tables, method documentation, and runnable real-world examples for Counter, Gauge, Histogram, Summary, Info, and Enum. The _index.md quick-pick table now covers all six types. Also fixes labels.md which was missing remove(), remove_by_labels(), and clear() -- the metric pages were already linking to it for those methods. Closes prometheus#1021 Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com> * docs: address review feedback on counter example and table header Revert quick-start counter example to use 'my_failures' (no _total suffix) since the library appends it automatically. Rename 'Value goes' column to 'Behavior' in the metric type overview table for clarity across all six types. Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com> * docs: rename table column to 'Update model' Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com> --------- Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for daa1626 - Browse repository at this point
Copy the full SHA daa1626View commit details -
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2cd1738 - Browse repository at this point
Copy the full SHA 2cd1738View commit details
Commits on Apr 17, 2026
-
docs: add API reference for pushgateway, textfile, and multiprocess (p…
…rometheus#1162) Closes prometheus#1161 Adds parameter tables and formal API reference sections to three pages that previously had examples but no parameter documentation. pushgateway.md: documents push_to_gateway, pushadd_to_gateway, delete_from_gateway, instance_ip_grouping_key, and all four built-in handlers (default, basic_auth, tls_auth, passthrough_redirect). textfile.md: documents write_to_textfile with all four parameters including the previously undocumented escaping and tmpdir, plus atomic write semantics and error behavior. multiprocess/_index.md: documents MultiProcessCollector constructor and mark_process_dead with parameter tables including the previously undocumented path parameter on both. Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 130a4e8 - Browse repository at this point
Copy the full SHA 130a4e8View commit details
Commits on Apr 24, 2026
-
Expose measured duration on Timer context manager (prometheus#1166)
Assigning the .time() context manager (with ... as t) now yields a Timer whose .duration attribute holds the observed value in seconds after the block exits. This lets callers reuse the measurement (logging, further metrics) without calling default_timer() a second time. Signed-off-by: Lukáš Vokráčko <lukas@vokracko.cz>
Configuration menu - View commit details
-
Copy full SHA for e75a74f - Browse repository at this point
Copy the full SHA e75a74fView commit details -
docs: add API reference for CollectorRegistry and custom collector cl…
…asses (prometheus#1169) Closes prometheus#1163 collector/custom.md: Collector protocol section (collect/describe), value vs labels mutual exclusivity note, full constructor and add_metric tables for GaugeMetricFamily, CounterMetricFamily, SummaryMetricFamily, HistogramMetricFamily, and InfoMetricFamily, plus a runnable real-world example. collector/_index.md: constructor parameter tables for ProcessCollector, PlatformCollector, and GCCollector, with exported metrics listed for each. registry/_index.md (new): CollectorRegistry constructor and all public methods (register, unregister, collect, restricted_registry, get_sample_value, set_target_info, get_target_info), the global REGISTRY instance, and examples for isolated registry usage and registry=None. All code examples verified by running them in Python. Signed-off-by: k1chik <107162115+k1chik@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 482656c - Browse repository at this point
Copy the full SHA 482656cView commit details
Commits on May 4, 2026
-
docs: follow-up fixes for collect() generator examples (prometheus#1169…
…) (prometheus#1172) * docs: clarify collect() generator usage and API Reference snippet context Add a note to the collect() protocol section explaining that yield is idiomatic (generator iterates lazily, no state between scrapes) and a preamble to the API Reference section clarifying that code snippets belong inside a collect() method. Follows up on review feedback in prometheus#1169. Signed-off-by: k1chik <kkukdia@gmail.com> * docs: split InfoMetricFamily example into two separate blocks The single block with two yield statements looked like one collect() yielding both patterns. Split into labelled prose + code pairs to make clear they are alternatives, not sequential yields. Signed-off-by: k1chik <kkukdia@gmail.com> --------- Signed-off-by: k1chik <kkukdia@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2c84c2a - Browse repository at this point
Copy the full SHA 2c84c2aView commit details
Commits on May 6, 2026
-
Use specific exception for duplicate timeseries (prometheus#1074)
Use sub-class of ValueError instead of ValueError, so that we can distinguish issues caused by wrong input (like invalid name format) from duplicate metrics being registered into the same registry. Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
Configuration menu - View commit details
-
Copy full SHA for 6133347 - Browse repository at this point
Copy the full SHA 6133347View commit details
Commits on Jun 2, 2026
-
Update common Prometheus files (prometheus#1179)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Configuration menu - View commit details
-
Copy full SHA for c0e416d - Browse repository at this point
Copy the full SHA c0e416dView 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 master...master