Documentation ¶
Index ¶
- func GetUpdateMetricsInterval() time.Duration
- func RegisterUpdateMetricsFunctions(name string, f UpdateMetricsFunction)
- func RegisterUpdateMetricsFunctionsWithInterval(name string, f UpdateMetricsFunction, interval time.Duration)
- func SetUpdateMetricsInterval(interval time.Duration)
- func UpdateBatchMetrics(ctx context.Context) error
- func UpdateGraphMetrics(ctx context.Context) error
- func UpdateMetrics(ctx context.Context)
- func UpdateStorageMetrics(ctx context.Context) error
- type UpdateMetricsFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUpdateMetricsInterval ¶
GetUpdateMetricsInterval gets interval
func RegisterUpdateMetricsFunctions ¶
func RegisterUpdateMetricsFunctions(name string, f UpdateMetricsFunction)
RegisterUpdateMetricsFunctions allows you to register a function that will update prometheus metrics
func RegisterUpdateMetricsFunctionsWithInterval ¶ added in v0.2.0
func RegisterUpdateMetricsFunctionsWithInterval(name string, f UpdateMetricsFunction, interval time.Duration)
RegisterUpdateMetricsFunctionsWithInterval allows you to register a function that will update prometheus metrics every interval
func SetUpdateMetricsInterval ¶
SetUpdateMetricsInterval sets interval
func UpdateBatchMetrics ¶
UpdateBatchMetrics updates batch metrics
func UpdateGraphMetrics ¶
UpdateGraphMetrics updates graph metrics
func UpdateMetrics ¶
UpdateMetrics main update metrics process This process loops forever so it needs to be detached
func UpdateStorageMetrics ¶ added in v0.2.0
UpdateStorageMetrics updates storage metrics.
Types ¶
type UpdateMetricsFunction ¶ added in v0.2.0
UpdateMetricsFunction ...
Click to show internal directories.
Click to hide internal directories.