mpredash

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnsafeAllTaskStates = []string{
	"waiting",
	"finished",
	"executing_query",
	"failed",
	"processing",
	"checking_alerts",
	"other",
}

UnsafeAllTaskStates represents task states

Functions

func Do

func Do()

Do the plugin

Types

type RedashPlugin

type RedashPlugin struct {
	URI     string
	Prefix  string
	Timeout uint
}

RedashPlugin mackerel plugin

func (RedashPlugin) FetchMetrics

func (p RedashPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (RedashPlugin) GraphDefinition

func (p RedashPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (RedashPlugin) MetricKeyPrefix

func (p RedashPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

type UnsafeRedashStats

type UnsafeRedashStats struct {
	WaitTasks       []UnsafeTaskStats `json:"waiting"`
	DoneTasks       []UnsafeTaskStats `json:"done"`
	InProgressTasks []UnsafeTaskStats `json:"in_progress"`
}

UnsafeRedashStats represents a redash stats

type UnsafeTaskStats

type UnsafeTaskStats struct {
	State     string `json:"state"`
	Scheduled bool   `json:"scheduled"`
}

UnsafeTaskStats represents a task stats

Jump to

Keyboard shortcuts

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