Module: Io::Prometheus::Client
- Defined in:
- lib/promproto/metrics_pb.rb
Constant Summary collapse
- DESCRIPTOR_DATA =
Load the compiled FileDescriptorSet
File.binread( File.("metrics.pb", __dir__) ).freeze
- FILE_DESCRIPTOR_SET =
Parse the FileDescriptorSet
Google::Protobuf::FileDescriptorSet.decode(DESCRIPTOR_DATA)
- DESCRIPTOR_POOL =
Add each file descriptor to a pool
Google::Protobuf::DescriptorPool.new
- LabelPair =
DESCRIPTOR_POOL.lookup("io.prometheus.client.LabelPair").msgclass
- Gauge =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Gauge").msgclass
- Counter =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Counter").msgclass
- Quantile =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Quantile").msgclass
- Summary =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Summary").msgclass
- Untyped =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Untyped").msgclass
- BucketSpan =
DESCRIPTOR_POOL.lookup("io.prometheus.client.BucketSpan").msgclass
- Bucket =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Bucket").msgclass
- Histogram =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Histogram").msgclass
- Metric =
DESCRIPTOR_POOL.lookup("io.prometheus.client.Metric").msgclass
- MetricFamily =
DESCRIPTOR_POOL.lookup("io.prometheus.client.MetricFamily").msgclass
- MetricType =
DESCRIPTOR_POOL.lookup("io.prometheus.client.MetricType").enummodule