Documentation ¶
Index ¶
- Variables
- func APIRedirect(w http.ResponseWriter, req *http.Request)
- func Action(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Alerts(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func AnnotateEnabled(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Config(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
- func ConfigTest(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
- func DeleteMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Dir(useLocal bool, name string) http.FileSystem
- func ErrorHistory(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Expr(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (v interface{}, err error)
- func ExprGraph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func FilteredTagsetsByMetric(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func GetMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Graph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func HealthCheck(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Host(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func IncidentEvents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Incidents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Index(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
- func IndexTSDB(w http.ResponseWriter, r *http.Request)
- func JSON(...) http.Handler
- func Last(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func ListOpenIncidents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Listen(listenAddr string, devMode bool, tsdbHost string) error
- func MetadataMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func MetricsByTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func MetricsByTagPair(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func OpenTSDBVersion(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func PutMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Quiet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Relay(dest string) http.Handler
- func Rule(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func RunEsc()
- func RunTsc()
- func ScheduleLockStatus(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Shorten(w http.ResponseWriter, r *http.Request)
- func SilenceClear(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func SilenceGet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func SilenceSet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Status(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func TagKeysByMetric(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func TagValuesByMetricTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func TagValuesByTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func UniqueMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
- func Version(w http.ResponseWriter, r *http.Request)
- type Health
- type MetricMetaTagKeys
- type MultiError
- type Res
Constants ¶
This section is empty.
Variables ¶
var (
InternetProxy *url.URL
)
Functions ¶
func APIRedirect ¶
func APIRedirect(w http.ResponseWriter, req *http.Request)
func Action ¶
func Action(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Alerts ¶
func Alerts(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func AnnotateEnabled ¶
func AnnotateEnabled(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Config ¶
func Config(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
func ConfigTest ¶
func ConfigTest(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
func DeleteMetadata ¶
func DeleteMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func ErrorHistory ¶
func ErrorHistory(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Expr ¶
func Expr(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (v interface{}, err error)
func ExprGraph ¶
func ExprGraph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
ExprGraph returns an svg graph. The basename of the requested svg file should be a base64 encoded expression.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
func FilteredTagsetsByMetric ¶
func FilteredTagsetsByMetric(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func GetMetadata ¶
func GetMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Graph ¶
func Graph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
Graph takes an OpenTSDB request data structure and queries OpenTSDB. Use the json parameter to pass JSON. Use the b64 parameter to pass base64-encoded JSON.
func HealthCheck ¶
func HealthCheck(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Host ¶
func Host(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func IncidentEvents ¶
func IncidentEvents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Incidents ¶
func Incidents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Index ¶
func Index(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)
func JSON ¶
func JSON(h func(miniprofiler.Timer, http.ResponseWriter, *http.Request) (interface{}, error)) http.Handler
func Last ¶
func Last(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
Last returns the most recent datapoint for a metric+tagset. The metric+tagset string should be formated like os.cpu{host=foo}. The tag porition expects the that the keys will be in alphabetical order.
func ListOpenIncidents ¶
func ListOpenIncidents(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func MetadataMetrics ¶
func MetadataMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func MetricsByTagKey ¶
func MetricsByTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func MetricsByTagPair ¶
func MetricsByTagPair(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func OpenTSDBVersion ¶
func OpenTSDBVersion(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func PutMetadata ¶
func PutMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Quiet ¶
func Quiet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Rule ¶
func Rule(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func ScheduleLockStatus ¶
func ScheduleLockStatus(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func SilenceClear ¶
func SilenceClear(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func SilenceGet ¶
func SilenceGet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func SilenceSet ¶
func SilenceSet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func Status ¶
func Status(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func TagKeysByMetric ¶
func TagKeysByMetric(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func TagValuesByMetricTagKey ¶
func TagValuesByMetricTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func TagValuesByTagKey ¶
func TagValuesByTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
func UniqueMetrics ¶
func UniqueMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)
UniqueMetrics returns a sorted list of available metrics.
Types ¶
type Health ¶
type Health struct { // RuleCheck is true if last check happened within the check frequency window. RuleCheck bool }
type MetricMetaTagKeys ¶
type MetricMetaTagKeys struct { *database.MetricMetadata TagKeys []string }
type MultiError ¶
func (MultiError) Error ¶
func (m MultiError) Error() string