Versions in this module Expand all Collapse all v0 v0.1.14-alpha.1 Mar 27, 2023 v0.1.14-alpha.0 Mar 19, 2023 v0.1.13 Nov 6, 2022 v0.1.12 Nov 5, 2022 v0.1.11 Nov 4, 2022 Changes in this version + func HTTPGet(url string, params map[string]string) (string, error) + func InitDB() + func LoadConfig(version string) + func Run(ventiVersion string) + func RunHTTPLetheQuery(httpQuery HTTPQuery) (string, error) + func RunHTTPLetheQueryRange(httpQueryRange HTTPQueryRange) (string, error) + func RunHTTPPrometheusQuery(httpQuery HTTPQuery) (string, error) + func RunHTTPPrometheusQueryRange(httpQueryRange HTTPQueryRange) (string, error) + func StartAlertDaemon() + func StartServer() + func TokenRequired(c *gin.Context) + type Alert struct + Annotations map[string]string + GeneratorURL string + Labels map[string]string + Status string + type AlertRule struct + ActiveAt time.Time + Alert string + Annotations map[string]string + Expr string + For time.Duration + Labels map[string]string + State AlertState + type AlertRuleGroup struct + CommonLabels map[string]string + DatasourceType DatasourceType + Name string + Rules []AlertRule + func GetAlertRuleGroups() []AlertRuleGroup + type AlertRuleGroupList struct + Groups []AlertRuleGroup + type AlertState string + const AlertStateFiring + const AlertStateInactive + const AlertStatePending + type ChartOptions struct + YMax int + type Config struct + AlertRuleGroups []AlertRuleGroup + Dashboards []Dashboard + DatasourcesConfig DatasourcesConfig + EtcUsersConfig EtcUsersConfig + Version string + func GetConfig() Config + type Dashboard struct + Rows []Row + Title string + type Datasource struct + Host string + IsDiscovered bool + Port int + Type DatasourceType + func GetDatasources() ([]Datasource, error) + type DatasourceType string + const DatasourceTypeLethe + const DatasourceTypePrometheus + type DatasourcesConfig struct + Datasources []Datasource + QueryTimeout time.Duration + type EtcUser struct + Hash string + IsAdmin bool + Username string + type EtcUsersConfig struct + EtcUsers []EtcUser + type HTTPQuery struct + Host string + Port int + Query string + Time string + type HTTPQueryRange struct + End string + Host string + Port int + Query string + Start string + Step string + type LoginForm struct + Password string + Username string + type Panel struct + ChartOptions *ChartOptions + Headers []string + Targets []Target + Title string + Type string + type QueryData struct + Result Vector + ResultType ValueType + type QueryResult struct + Data QueryData + Status string + type Row struct + Panels []Panel + type Sample struct + Metric map[string]string + Vaue []interface{} + type Target struct + Columns []string + Expr string + Headers []string + Key string + Legend string + Legends []string + Thresholds []Threshold + Unit string + type Threshold struct + Invert bool + Values []int + type User struct + CreatedAt time.Time + Hash string + ID int + IsAdmin bool + Token string + TokenExpires time.Time + UpdatedAt time.Time + Username string + type ValueType string + const ValueTypeMatrix + const ValueTypeNone + const ValueTypeScalar + const ValueTypeString + const ValueTypeVector + type Vector []Sample