Skip to content

Instantly share code, notes, and snippets.

View johnduarte's full-sized avatar

John Duarte johnduarte

View GitHub Profile
# quick and dirty expression of automating importation
# of L/XL data into grafana from gplt metrics collector data
require "yaml"
time = "1571690335" # this should be introspected from the data directory
tag = "slv-649" # passed as an argument
source = "data/#{tag}"
# parse yaml
data = YAML.load(File.read("jrd-gplt-01/build/pe_xl/nodes.yaml"))