Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorOK = "#9ece6a" ColorWarn = "#e0af68" ColorCrit = "#f7768e" ColorAxis = "#565f89" )
Percentage value threshold colors.
Variables ¶
View Source
var SeriesPalette = []string{
"#9ece6a",
"#7aa2f7",
"#bb9af7",
"#7dcfff",
"#e0af68",
"#f7768e",
}
SeriesPalette defines series colors in Tokyo Night palette order.
Functions ¶
func SeriesColor ¶
SeriesColor returns the color for series i, cycling through the palette.
func ValueColor ¶
ValueColor returns a color based on thresholds: <60 OK, <85 warn, otherwise crit.
Types ¶
Click to show internal directories.
Click to hide internal directories.