styx

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 8 Imported by: 0

README

styx

Library for generating GNUPlot files from Prometheus data. This is a fork for use in SourceHut Ikiru.

Changes

  • MatPlot support is removed
    • it isn't needed for Ikiru
  • main.go has been removed
    • It's been replaced with a simple API to enable usage as a library
  • Dependency on color is removed
    • There's no justification for pulling in three libraries just to avoid hard-coding the ANSI color code for red
    • There's no need for colorization anyways, it's one error message, not a giant list that needs to be sorted through

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVWriter

func CSVWriter(w io.Writer, results []Result) error

Types

type Result

type Result struct {
	Metric string
	Values map[string]string
}

func Query

func Query(host string, start time.Time, end time.Time, query string) ([]Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL