You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clair/vendor/github.com/prometheus/client_model/ruby
jgsqware d9d5b058e5
replace GoDep by Glide
8 years ago
..
lib/prometheus/client replace GoDep by Glide 8 years ago
.gitignore replace GoDep by Glide 8 years ago
Gemfile replace GoDep by Glide 8 years ago
LICENSE *: refresh godeps 8 years ago
Makefile replace GoDep by Glide 8 years ago
README.md replace GoDep by Glide 8 years ago
Rakefile replace GoDep by Glide 8 years ago
prometheus-client-model.gemspec replace GoDep by Glide 8 years ago

README.md

Prometheus Ruby client model

Data model artifacts for the Prometheus Ruby client.

Installation

gem install prometheus-client-model

Usage

Build the artifacts from the protobuf specification:

make build

While this Gem's main purpose is to define the Prometheus data types for the client, it's possible to use it without the client to decode a stream of delimited protobuf messages:

require 'open-uri'
require 'prometheus/client/model'

CONTENT_TYPE = 'application/vnd.google.protobuf; proto=io.prometheus.client.MetricFamily; encoding=delimited'

stream = open('http://localhost:9090/metrics', 'Accept' => CONTENT_TYPE).read
while family = Prometheus::Client::MetricFamily.read_delimited(stream)
  puts family
end