Upgrading prometheus-client 0.13 to 0.14
Unknown0.13.1 → 0.14.1
Fetching 2 releases from GitHub…0 / 2
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function make_asgi_app(registry=…) → function make_asgi_app(registry: CollectorRegistry=…, disable_compression: bool=…) -> Callable
- changed:
constructor GraphiteBridge(address, registry=…, timeout_seconds=…, _timer=…, tags=…) → constructor GraphiteBridge(address: Tuple[str, int], registry: CollectorRegistry=…, timeout_seconds: float=…, _timer: Callable[[], float]=…, tags: bool=…) - changed:
method GraphiteBridge.push(prefix=…) → method GraphiteBridge.push(prefix: str=…) -> None - changed:
method GraphiteBridge.start(interval=…, prefix=…) → method GraphiteBridge.start(interval: float=…, prefix: str=…) -> None
- changed:
field MetricsHandler.registry → field MetricsHandler.registry: CollectorRegistry - changed:
function delete_from_gateway(gateway, job, grouping_key=…, timeout=…, handler=…) → function delete_from_gateway(gateway: str, job: str, grouping_key: Optional[Dict[str, Any]]=…, timeout: Optional[float]=…, handler: Callable=…) -> None - changed:
function generate_latest(registry=…) → function generate_latest(registry: CollectorRegistry=…) -> bytes - changed:
function instance_ip_grouping_key() → function instance_ip_grouping_key() -> Dict[str, Any] - changed:
function make_wsgi_app(registry=…) → function make_wsgi_app(registry: CollectorRegistry=…, disable_compression: bool=…) -> Callable - changed:
function push_to_gateway(gateway, job, registry, grouping_key=…, timeout=…, handler=…) → function push_to_gateway(gateway: str, job: str, registry: CollectorRegistry, grouping_key: Optional[Dict[str, Any]]=…, timeout: Optional[float]=…, handler: Callable=…) -> None - changed:
function pushadd_to_gateway(gateway, job, registry, grouping_key=…, timeout=…, handler=…) → function pushadd_to_gateway(gateway: str, job: str, registry: Optional[CollectorRegistry], grouping_key: Optional[Dict[str, Any]]=…, timeout: Optional[float]=…, handler: Callable=…) -> None - changed:
function start_wsgi_server(port, addr=…, registry=…) → function start_wsgi_server(port: int, addr: str=…, registry: CollectorRegistry=…) -> None - changed:
function write_to_textfile(path, registry) → function write_to_textfile(path: str, registry: CollectorRegistry) -> None - changed:
method MetricsHandler.do_GET() → method MetricsHandler.do_GET() -> None - changed:
method MetricsHandler.log_message(format, *args) → method MetricsHandler.log_message(format: str, *args: Any) -> None - changed:
static method MetricsHandler.factory(registry) → static method MetricsHandler.factory(registry: CollectorRegistry) -> type
- changed:
class GCCollector → class GCCollector(Collector) - changed:
constructor GCCollector(registry=…) → constructor GCCollector(registry: CollectorRegistry=…) - changed:
method GCCollector.collect() → method GCCollector.collect() -> Iterable[Metric]
- changed:
class MetricWrapperBase → class MetricWrapperBase(Collector) - changed:
constructor Gauge(name, documentation, labelnames=…, namespace=…, subsystem=…, unit=…, registry=…, _labelvalues=…, multiprocess_mode=…) → constructor Gauge(name: str, documentation: str, labelnames: Iterable[str]=…, namespace: str=…, subsystem: str=…, unit: str=…, registry: Optional[CollectorRegistry]=…, _labelvalues: Optional[Sequence[str]]=…, multiprocess_mode: str=…) - changed:
constructor Histogram(name, documentation, labelnames=…, namespace=…, subsystem=…, unit=…, registry=…, _labelvalues=…, buckets=…) → constructor Histogram(name: str, documentation: str, labelnames: Iterable[str]=…, namespace: str=…, subsystem: str=…, unit: str=…, registry: Optional[CollectorRegistry]=…, _labelvalues: Optional[Sequence[str]]=…, buckets: Sequence[Union[float, str]]=…) - changed:
method Gauge.dec(amount=…) → method Gauge.dec(amount: float=…) -> None - changed:
method Gauge.inc(amount=…) → method Gauge.inc(amount: float=…) -> None - changed:
method Gauge.set(value) → method Gauge.set(value: float) -> None - changed:
method Gauge.set_function(f) → method Gauge.set_function(f: Callable[[], float]) -> None - changed:
method Gauge.set_to_current_time() → method Gauge.set_to_current_time() -> None - changed:
method Gauge.time() → method Gauge.time() -> Timer - changed:
method Gauge.track_inprogress() → method Gauge.track_inprogress() -> InprogressTracker - changed:
method Histogram.observe(amount, exemplar=…) → method Histogram.observe(amount: float, exemplar: Optional[Dict[str, str]]=…) -> None - changed:
method Histogram.time() → method Histogram.time() -> Timer - changed:
method Info.info(val) → method Info.info(val: Dict[str, str]) -> None - changed:
method MetricWrapperBase.collect() → method MetricWrapperBase.collect() -> Iterable[Metric] - changed:
method MetricWrapperBase.describe() → method MetricWrapperBase.describe() -> Iterable[Metric] - changed:
method MetricWrapperBase.remove(*labelvalues) → method MetricWrapperBase.remove(*labelvalues: Any) -> None - changed:
method Summary.observe(amount) → method Summary.observe(amount: float) -> None - changed:
method Summary.time() → method Summary.time() -> Timer
- changed:
constructor CounterMetricFamily(name, documentation, value=…, labels=…, created=…, unit=…) → constructor CounterMetricFamily(name: str, documentation: str, value: Optional[float]=…, labels: Sequence[str]=…, created: Optional[float]=…, unit: str=…) - changed:
constructor GaugeHistogramMetricFamily(name, documentation, buckets=…, gsum_value=…, labels=…, unit=…) → constructor GaugeHistogramMetricFamily(name: str, documentation: str, buckets: Optional[Sequence[Tuple[str, float]]]=…, gsum_value: Optional[float]=…, labels: Optional[Sequence[str]]=…, unit: str=…) - changed:
constructor GaugeMetricFamily(name, documentation, value=…, labels=…, unit=…) → constructor GaugeMetricFamily(name: str, documentation: str, value: Optional[float]=…, labels: Optional[Sequence[str]]=…, unit: str=…) - changed:
constructor HistogramMetricFamily(name, documentation, buckets=…, sum_value=…, labels=…, unit=…) → constructor HistogramMetricFamily(name: str, documentation: str, buckets: Optional[Sequence[Union[Tuple[str, float], Tuple[str, float, Exemplar]]]]=…, sum_value: Optional[float]=…, labels: Optional[Sequence[str]]=…, unit: str=…) - changed:
constructor InfoMetricFamily(name, documentation, value=…, labels=…) → constructor InfoMetricFamily(name: str, documentation: str, value: Optional[Dict[str, str]]=…, labels: Optional[Sequence[str]]=…) - changed:
constructor Metric(name, documentation, typ, unit=…) → constructor Metric(name: str, documentation: str, typ: str, unit: str=…) - changed:
constructor StateSetMetricFamily(name, documentation, value=…, labels=…) → constructor StateSetMetricFamily(name: str, documentation: str, value: Optional[Dict[str, bool]]=…, labels: Optional[Sequence[str]]=…) - changed:
constructor SummaryMetricFamily(name, documentation, count_value=…, sum_value=…, labels=…, unit=…) → constructor SummaryMetricFamily(name: str, documentation: str, count_value: Optional[int]=…, sum_value: Optional[float]=…, labels: Optional[Sequence[str]]=…, unit: str=…) - changed:
constructor UnknownMetricFamily(name, documentation, value=…, labels=…, unit=…) → constructor UnknownMetricFamily(name: str, documentation: str, value: Optional[float]=…, labels: Optional[Sequence[str]]=…, unit: str=…) - changed:
method CounterMetricFamily.add_metric(labels, value, created=…, timestamp=…) → method CounterMetricFamily.add_metric(labels: Sequence[str], value: float, created: Optional[float]=…, timestamp: Optional[Union[Timestamp, float]]=…) -> None - changed:
method GaugeHistogramMetricFamily.add_metric(labels, buckets, gsum_value, timestamp=…) → method GaugeHistogramMetricFamily.add_metric(labels: Sequence[str], buckets: Sequence[Tuple[str, float]], gsum_value: Optional[float], timestamp: Optional[Union[float, Timestamp]]=…) -> None - changed:
method GaugeMetricFamily.add_metric(labels, value, timestamp=…) → method GaugeMetricFamily.add_metric(labels: Sequence[str], value: float, timestamp: Optional[Union[Timestamp, float]]=…) -> None - changed:
method HistogramMetricFamily.add_metric(labels, buckets, sum_value, timestamp=…) → method HistogramMetricFamily.add_metric(labels: Sequence[str], buckets: Sequence[Union[Tuple[str, float], Tuple[str, float, Exemplar]]], sum_value: Optional[float], timestamp: Optional[Union[Timestamp, float]]=…) -> None - changed:
method InfoMetricFamily.add_metric(labels, value, timestamp=…) → method InfoMetricFamily.add_metric(labels: Sequence[str], value: Dict[str, str], timestamp: Optional[Union[Timestamp, float]]=…) -> None - changed:
method Metric.add_sample(name, labels, value, timestamp=…, exemplar=…) → method Metric.add_sample(name: str, labels: Dict[str, str], value: float, timestamp: Optional[Union[Timestamp, float]]=…, exemplar: Optional[Exemplar]=…) -> None - changed:
method StateSetMetricFamily.add_metric(labels, value, timestamp=…) → method StateSetMetricFamily.add_metric(labels: Sequence[str], value: Dict[str, bool], timestamp: Optional[Union[Timestamp, float]]=…) -> None - changed:
method SummaryMetricFamily.add_metric(labels, count_value, sum_value, timestamp=…) → method SummaryMetricFamily.add_metric(labels: Sequence[str], count_value: int, sum_value: float, timestamp: Optional[Union[float, Timestamp]]=…) -> None - changed:
method UnknownMetricFamily.add_metric(labels, value, timestamp=…) → method UnknownMetricFamily.add_metric(labels: Sequence[str], value: float, timestamp: Optional[Union[Timestamp, float]]=…) -> None
- changed:
class PlatformCollector → class PlatformCollector(Collector) - changed:
constructor PlatformCollector(registry=…, platform=…) → constructor PlatformCollector(registry: CollectorRegistry=…, platform: Optional[Any]=…) - changed:
method PlatformCollector.collect() → method PlatformCollector.collect() -> Iterable[Metric]
- changed:
class ProcessCollector → class ProcessCollector(Collector) - changed:
constructor ProcessCollector(namespace=…, pid=…, proc=…, registry=…) → constructor ProcessCollector(namespace: str=…, pid: Callable[[], Union[int, str]]=…, proc: str=…, registry: CollectorRegistry=…) - changed:
method ProcessCollector.collect() → method ProcessCollector.collect() -> Iterable[Metric]
- changed:
class CollectorRegistry → class CollectorRegistry(Collector) - changed:
constructor CollectorRegistry(auto_describe=…, target_info=…) → constructor CollectorRegistry(auto_describe: bool=…, target_info: Optional[Dict[str, str]]=…) - changed:
constructor RestrictedRegistry(names, registry) → constructor RestrictedRegistry(names: Iterable[str], registry: CollectorRegistry) - changed:
method CollectorRegistry.collect() → method CollectorRegistry.collect() -> Iterable[Metric] - changed:
method CollectorRegistry.get_sample_value(name, labels=…) → method CollectorRegistry.get_sample_value(name: str, labels: Optional[Dict[str, str]]=…) -> Optional[float] - changed:
method CollectorRegistry.get_target_info() → method CollectorRegistry.get_target_info() -> Optional[Dict[str, str]] - changed:
method CollectorRegistry.register(collector) → method CollectorRegistry.register(collector: Collector) -> None - changed:
method CollectorRegistry.restricted_registry(names) → method CollectorRegistry.restricted_registry(names: Iterable[str]) -> RestrictedRegistry - changed:
method CollectorRegistry.set_target_info(labels) → method CollectorRegistry.set_target_info(labels: Optional[Dict[str, str]]) -> None - changed:
method CollectorRegistry.unregister(collector) → method CollectorRegistry.unregister(collector: Collector) -> None - changed:
method RestrictedRegistry.collect() → method RestrictedRegistry.collect() -> Iterable[Metric] - added:
class Collector(ABC) - added:
method Collector.collect() -> Iterable[Metric]
- changed:
constructor Timestamp(sec, nsec) → constructor Timestamp(sec: float, nsec: float) -> None