Metrics
provide.foundation.metrics
¶
TODO: Add module docstring.
Classes¶
Functions¶
counter
¶
Create a counter metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the counter |
required |
description
|
str
|
Description of what this counter measures |
''
|
unit
|
str
|
Unit of measurement |
''
|
Returns:
| Type | Description |
|---|---|
SimpleCounter
|
Counter instance |
Source code in provide/foundation/metrics/__init__.py
gauge
¶
Create a gauge metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the gauge |
required |
description
|
str
|
Description of what this gauge measures |
''
|
unit
|
str
|
Unit of measurement |
''
|
Returns:
| Type | Description |
|---|---|
SimpleGauge
|
Gauge instance |
Source code in provide/foundation/metrics/__init__.py
histogram
¶
Create a histogram metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the histogram |
required |
description
|
str
|
Description of what this histogram measures |
''
|
unit
|
str
|
Unit of measurement |
''
|
Returns:
| Type | Description |
|---|---|
SimpleHistogram
|
Histogram instance |