The first version queries /api/v1/query_range directly and writes PNG or SVG charts using Matplotlib. The query and rendering code is kept separate from the CLI so a small HTTP service can wrap it ...