Prometheus Parser
A prometheus parser for Crystal.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
amqp-client:
github: 84codes/prometheus.cr
- Run
shards install
Usage
require "prometheus"
parsed = Prometheus::Parser.parse("response_packet_get_children_cache_hits 0.0")
parsed.first[:key] == "response_packet_get_children_cache_hits"
parsed.first[:value] == 0.0
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request