Documentation
¶
Index ¶
- func EncodeQuery(url string) string
- type DatasourceStatus
- type Handlers
- func (h *Handlers) ExportFlows(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetClusters(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetFlows(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetFrontendConfig() func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetNames(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetNamespaces(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetTopology(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetUDNIdss(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetUDNs(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GetZones(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) LokiBuildInfos() func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) LokiLimits() func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) LokiMetrics() func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) LokiReady() func(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Status(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
- type LokiError
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeQuery ¶ added in v0.1.2
loki query will fail if spaces or quotes are not encoded * we can't use url.QueryEscape or url.Values here since Loki doesn't manage encoded parenthesis
Types ¶
type DatasourceStatus ¶
type Handlers ¶
type Handlers struct {
Cfg *config.Config
PromInventory *prometheus.Inventory
}
func (*Handlers) ExportFlows ¶
func (*Handlers) GetClusters ¶
func (*Handlers) GetFrontendConfig ¶
func (h *Handlers) GetFrontendConfig() func(w http.ResponseWriter, r *http.Request)
func (*Handlers) GetNamespaces ¶
func (*Handlers) GetTopology ¶
func (*Handlers) GetUDNIdss ¶
func (*Handlers) LokiBuildInfos ¶
func (h *Handlers) LokiBuildInfos() func(w http.ResponseWriter, r *http.Request)
func (*Handlers) LokiLimits ¶
func (h *Handlers) LokiLimits() func(w http.ResponseWriter, r *http.Request)
func (*Handlers) LokiMetrics ¶
func (h *Handlers) LokiMetrics() func(w http.ResponseWriter, r *http.Request)
type Status ¶
type Status struct {
Loki DatasourceStatus `yaml:"loki" json:"loki"`
Prometheus DatasourceStatus `yaml:"prometheus" json:"prometheus"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.