Documentation ¶
Index ¶
Constants ¶
View Source
const INFLUX_BUCKET = "INFLUX_BUCKET"
View Source
const INFLUX_HOSTNAME = "INFLUX_HOSTNAME"
View Source
const INFLUX_ORG = "INFLUX_ORG"
View Source
const INFLUX_TOKEN = "INFLUX_TOKEN"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportHandler ¶
type ImportHandler struct {
MetricStores []MetricStore
}
func NewImportHandler ¶
func NewImportHandler(metricStores []MetricStore) *ImportHandler
func (*ImportHandler) ServeHTTP ¶
func (handler *ImportHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request)
type MetricStore ¶
MetricStore encapsulates a storage backend for the metrics provided by the Auto Export app. There is a possibility of the same metrics arriving twice so all MetricStores must not store duplicate metrics.
func LoadMetricStores ¶
func LoadMetricStores(filename string) ([]MetricStore, error)
func LoadMetricStoresFromConfig ¶
func LoadMetricStoresFromConfig(filename string) ([]MetricStore, error)
func LoadMetricStoresFromEnvironment ¶
func LoadMetricStoresFromEnvironment() ([]MetricStore, error)
Click to show internal directories.
Click to hide internal directories.