Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
A prometheus parser for Crystal.
shard.yml
:dependencies:
amqp-client:
github: 84codes/prometheus.cr
shards install
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
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)