Class: Prometheus::Client::DataStores::Synchronized
- Inherits:
-
Object
- Object
- Prometheus::Client::DataStores::Synchronized
- Defined in:
- lib/prometheus/client/data_stores/synchronized.rb
Overview
Stores all the data in simple hashes, one per metric. Each of these metrics synchronizes access to their hash, but multiple metrics can run observations concurrently.
Defined Under Namespace
Classes: InvalidStoreSettingsError
Instance Method Summary collapse
Instance Method Details
#for_metric(metric_name, metric_type:, metric_settings: {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/prometheus/client/data_stores/synchronized.rb', line 10 def for_metric(metric_name, metric_type:, metric_settings: {}) # We don't need `metric_type` or `metric_settings` for this particular store validate_metric_settings(metric_settings: metric_settings) MetricStore.new end |