client_python の API リファレンス
client_python (prometheus/client_python) の公開 API 53 件 —— クラス 24、関数 5、メソッド 24。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: prometheus/client_python
| 種別 | 件数 |
|---|---|
| クラス | 24 |
| 関数 | 5 |
| メソッド | 24 |
API 一覧
func
prometheus_client.decorator.getargspec(f)A replacement for inspect.getargspec
class
prometheus_client.decorator.getfullargspecA quick and dirty replacement for getfullargspec for Python 2.X
class
prometheus_client.exposition.MetricsHandlerHTTP handler that gives metrics from ``REGISTRY``.
method
prometheus_client.exposition.MetricsHandler.log_message(format:str, *args:Any) -> NoneLog nothing.
class
prometheus_client.exposition.ThreadingWSGIServerThread per request HTTP server.
func
prometheus_client.exposition.write_to_textfile(path:str, registry:Collector, escaping:str=openmetrics.ALLOWUTF8, tmpdir:Optional[str]=None) -> NoneWrite metrics to the given path.
class
prometheus_client.gc_collector.GCCollectorCollector for Garbage collection statistics.
class
prometheus_client.metrics.CounterA Counter tracks counts of events or running totals.
method
prometheus_client.metrics.Counter.inc(amount:float=1, exemplar:Optional[Dict[str, str]]=None) -> NoneIncrement counter by the given amount.
method
prometheus_client.metrics.Counter.reset() -> NoneReset the counter to zero.
class
prometheus_client.metrics.EnumEnum metric, which of a set of states is true.
method
prometheus_client.metrics.Enum.state(state:str) -> NoneSet enum metric state.
class
prometheus_client.metrics.GaugeGauge metric, to report instantaneous values.
method
prometheus_client.metrics.Gauge.dec(amount:float=1) -> NoneDecrement gauge by the given amount.
method
prometheus_client.metrics.Gauge.inc(amount:float=1) -> NoneIncrement gauge by the given amount.
method
prometheus_client.metrics.Gauge.set(value:float) -> NoneSet gauge to the given value.
method
prometheus_client.metrics.Gauge.set_function(f:Callable[[], float]) -> NoneCall the provided function to return the Gauge value.
method
prometheus_client.metrics.Gauge.set_to_current_time() -> NoneSet gauge to the current unixtime.
method
prometheus_client.metrics.Gauge.time() -> TimerTime a block of code or function, and set the duration in seconds.
method
prometheus_client.metrics.Gauge.track_inprogress() -> InprogressTrackerTrack inprogress blocks of code or functions.
method
prometheus_client.metrics.Histogram.observe(amount:float, exemplar:Optional[Dict[str, str]]=None) -> NoneObserve the given amount.
class
prometheus_client.metrics.InfoInfo metric, key-value pairs.
method
prometheus_client.metrics.Info.info(val:Dict[str, str]) -> NoneSet info metric.
class
prometheus_client.metrics.SummaryA Summary tracks the size and number of events.
method
prometheus_client.metrics.Summary.observe(amount:float) -> NoneObserve the given amount.
class
prometheus_client.metrics_core.CounterMetricFamilyA single counter and its samples.
class
prometheus_client.metrics_core.GaugeHistogramMetricFamilyA single gauge histogram and its samples.
class
prometheus_client.metrics_core.GaugeMetricFamilyA single gauge and its samples.
method
prometheus_client.metrics_core.GaugeMetricFamily.add_metric(labels:Sequence[str], value:float, timestamp:Optional[Union[Timestamp, float]]=None) -> NoneAdd a metric to the metric family.
class
prometheus_client.metrics_core.HistogramMetricFamilyA single histogram and its samples.
class
prometheus_client.metrics_core.InfoMetricFamilyA single info and its samples.
method
prometheus_client.metrics_core.InfoMetricFamily.add_metric(labels:Sequence[str], value:Dict[str, str], timestamp:Optional[Union[Timestamp, float]]=None) -> NoneAdd a metric to the metric family.
class
prometheus_client.metrics_core.MetricA single metric family and its samples.
class
prometheus_client.metrics_core.StateSetMetricFamilyA single stateset and its samples.
method
prometheus_client.metrics_core.StateSetMetricFamily.add_metric(labels:Sequence[str], value:Dict[str, bool], timestamp:Optional[Union[Timestamp, float]]=None) -> NoneAdd a metric to the metric family.
class
prometheus_client.metrics_core.SummaryMetricFamilyA single summary and its samples.
method
prometheus_client.metrics_core.SummaryMetricFamily.add_metric(labels:Sequence[str], count_value:int, sum_value:float, timestamp:Optional[Union[float, Timestamp]]=None) -> NoneAdd a metric to the metric family.
class
prometheus_client.metrics_core.UnknownMetricFamilyA single unknown metric and its samples.
method
prometheus_client.metrics_core.UnknownMetricFamily.add_metric(labels:Sequence[str], value:float, timestamp:Optional[Union[Timestamp, float]]=None) -> NoneAdd a metric to the metric family.
class
prometheus_client.mmap_dict.MmapedDictA dict of doubles, backed by an mmapped file.
method
prometheus_client.mmap_dict.MmapedDict.read_all_values()Yield (key, value, timestamp).
func
prometheus_client.mmap_dict.mmap_key(metric_name:str, name:str, labelnames:List[str], labelvalues:List[str], help_text:str) -> strFormat a key for use in the mmap file.
class
prometheus_client.multiprocess.MultiProcessCollectorCollector for files for multi-process mode.
func
prometheus_client.parser.text_fd_to_metric_families(fd:TextIO) -> Iterable[Metric]Parse Prometheus text format from a file descriptor.
func
prometheus_client.parser.text_string_to_metric_families(text:str) -> Iterable[Metric]Parse Prometheus text format from a unicode string.
class
prometheus_client.platform_collector.PlatformCollectorCollector for python platform information
method
prometheus_client.registry.Collector.collect() -> Iterable[Metric]Collect metrics.
class
prometheus_client.registry.CollectorRegistryMetric collector registry.
method
prometheus_client.registry.CollectorRegistry.register(collector:Collector) -> NoneAdd a collector to the registry.
method
prometheus_client.registry.CollectorRegistry.restricted_registry(names:Iterable[str]) -> 'RestrictedRegistry'Returns object that only collects some metrics.
method
prometheus_client.registry.CollectorRegistry.unregister(collector:Collector) -> NoneRemove a collector from the registry.
class
prometheus_client.samples.TimestampA nanosecond-resolution timestamp.
class
prometheus_client.values.MutexValueA float protected by a mutex.
この情報について
掲載しているシグネチャは prometheus/client_python の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。