Skip to content

lazywithclass/haproxy-csv-parser

Repository files navigation

haproxy-csv-parser

Library that parses HAProxy dashboard information from csv into usable data

An example of how the data looks like could be found on the demo page.

Install

TODO (going to publish on clojars and then add here)

Usage

Here is how you would print all available headers provided by the csv export:

(defn -main[& args]
  (let [metrics (lines "http://demo.haproxy.org/;csv")]
    (println (metrics-names metrics)))

While this is how you print the value of svname and smax respectively:

(defn -main[& args]
  (let [metrics (lines "http://demo.haproxy.org/;csv")]
    (println (metric metrics "svname" 1))
    (println (metric metrics "smax" 1))))

About

Library that parses HAProxy dashboard information from csv into usable data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published