Storage Metrics
ESS includes a Storage Metrics feature to gather the following metrics:
The total number of Pods.
The number of “created” Pods (i.e., Pods that have been created and confirmed).
The number of “deleted” Pods (i.e., Pods that have been soft-deleted, i.e., marked as deleted).
The Storage Metrics is run as a Kubernetes CronJobs. To modify its schedule, see Modify Storage Metrics Schedule .
Observability
Logging for Pruning jobs share a consistent pattern where the messageId has the prefix STORAGEMETRICS or STORAGE :
{
"timestamp":<value>,
"sequence":<value>,
"loggerClassName":<value>,
"loggerName":<value>,
"level":<value>,
"message": "<STORAGEMETRICS|STORAGE><number>: <description>",
"threadName":<value>,
"threadId":<value>,
"hostName":<value>,
"processName":<value>,
"processId":<value>,
"messageId": "STORAGEMETRICS|STORAGE<number>"
// additional relevant fields, if any
}For the storage metrics features, the additional fields include:
an
mdc(managed diagnostic context) field that can be used for correlation;various storage metrics.
The following lists the various storage metrics that appear in the INFO level log messages (listed by the messageId ):
STORAGE000128(associated with the storage counts)resultCountTotal number of Pods (both “created” and “deleted”).
STORAGE000130(associated with the “created” storage counts)resultCountThe number of Pods that have been created and confirmed.
Prune emits Prometheus metrics with the following labeled names.
All of the following are prefixed with application_com_inrupt_storage_metrics_MetricsCollector_ .
{metricType=”count”, resourceType=”pod”, resourceStatus=”all”}
Total number of Pods (both “created” and “deleted”).
{metricType=”count”, resourceType=”pod”, resourceStatus=”created”}
The number of Pods that have been created and confirmed.
{metricType=”count”, resourceType=”pod”, resourceStatus=”deleted”}
The number of Pods that have been marked as deleted.
collect
Time taken to run the queries to gather the metrics.
See also Service Metrics: Prometheus Configuration .
When OpenTelemetry is configured, the application emits a single span named collect with the following attributes.
countPodAll
Total number of Pods (both “created” and “deleted”).
countPodCreated
The number of Pods that have been created and confirmed.
countPodDeleted
The number of Pods that have been marked as deleted.
durationMilliseconds
Time taken to run the queries to gather the metrics.
Last updated