# Functions

IncreaseClusterSuccessOperationsCountMetric - increase counter for clusterOperationsSuccessCountMetric.
IncreaseClusterTotalOperationsCountMetric - increase counter for clusterOperationsTotalCountMetric.
Increase the database query count metric with the following labels: - status: (i.e.
IncreaseDinosaurSuccessOperationsCountMetric - increase counter for the dinosaurOperationsSuccessCountMetric.
IncreaseDinosaurTotalOperationsCountMetric - increase counter for the dinosaurOperationsTotalCountMetric.
Increase the observatorium request count metric with the following labels: - code: HTTP Status code (i.e.
No description provided by the author
No description provided by the author
No description provided by the author
Reset the metrics we have defined.
ResetMetricsForClusterManagers will reset the metrics for the ClusterManager background reconciler This is needed because if current process is not the leader anymore, the metrics need to be reset otherwise staled data will be scraped.
ResetMetricsForDinosaurManagers will reset the metrics for the DinosaurManager background reconciler This is needed because if current process is not the leader anymore, the metrics need to be reset otherwise staled data will be scraped.
ResetMetricsForObservatorium will reset the metrics related to Observatorium requests This is needed because if current process is not the leader anymore, the metrics need to be reset otherwise staled data will be scraped.
ResetMetricsForReconcilers will reset the metrics related to the reconcilers This is needed because if current process is not the leader anymore, the metrics need to be reset otherwise staled data will be scraped.
SetLeaderWorkerMetric will set the metric value to 1 if the worker is the leader, and 0 if the worker is not the leader.
UpdateClusterCreationDurationMetric records the duration of a job type.
UpdateClusterStatusCapacityMaxCount - sets maximum capacity per region and instance type.
UpdateClusterStatusCapacityUsedCount - sets used capacity per region and instance type.
No description provided by the author
No description provided by the author
Update the observatorium request duration metric with the following labels: - status: (i.e.
UpdateDinosaurCreationDurationMetric records the duration of a job type.
No description provided by the author
UpdateDinosaurRequestsStatusCountMetric.
UpdateDinosaurRequestsStatusSinceCreatedMetric.
Update the observatorium request duration metric with the following labels: - code: HTTP Status code (i.e.
No description provided by the author

# Constants

ClusterCreateRequestDuration - name of cluster creation duration metric.
ClusterOperationsSuccessCount - name of the metric for cluster-related successful operations.
ClusterOperationsTotalCount - name of the metric for all cluster-related operations.
ClusterStatusMaxCapacity - metric name for the maximum dinosaur instance capacity.
ClusterStatusCapacityUsed - metric name for the current number of instances.
No description provided by the author
No description provided by the author
DatabaseQueryCount - metric name for the number of database query sent.
DatabaseQueryDuration - metric name for database query duration in milliseconds.
DinosaurCreateRequestDuration - name of dinosaur creation duration metric.
DinosaurOperationsSuccessCount - name of the metric for Dinosaur-related successful operations.
DinosaurOperationsTotalCount - name of the metric for all Dinosaur-related operations.
No description provided by the author
No description provided by the author
DinosaurRequestsStatus - dinosaur requests status metric.
FleetManager - metrics prefix.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ObservatoriumRequestCount - metric name for the number of observatorium requests sent.
ObservatoriumRequestDuration - metric name for observatorium request duration in seconds.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ClusterOperationsCountMetricsLabels - is the slice of labels to add to Dinosaur operations count metrics.
No description provided by the author
No description provided by the author
No description provided by the author
DinosaurOperationsCountMetricsLabels - is the slice of labels to add to Dinosaur operations count metrics.
No description provided by the author
create a new GaugeVec for status counts.
JobsMetricsLabels is the slice of labels to add to job metrics.
JobTypeClusterCreate - cluster_create job type.
JobTypeDinosaurCreate - dinosaur_create job type.
No description provided by the author

# Type aliases

JobType metric to capture.