Documentation ¶
Index ¶
- func ImageReportCLI(cfg config.ImageReport) (string, error)
- func TableReportCli(q Querier, queriesFile string) (string, error)
- type DashboardScreenshotter
- type FsWriter
- type GrafanaScreenshotter
- type ImageReporter
- type MetaReport
- type Panel
- type Querier
- type QueriesConfig
- type Query
- type Row
- type S3Writer
- type ScreenshotPanelConfig
- type TableReport
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageReportCLI ¶
func ImageReportCLI(cfg config.ImageReport) (string, error)
Types ¶
type DashboardScreenshotter ¶
type GrafanaScreenshotter ¶
func (*GrafanaScreenshotter) AllPanels ¶
func (gs *GrafanaScreenshotter) AllPanels(ctx context.Context, dashboardUID string, from int64, to int64) ([]Panel, error)
AllPanes take a screenshot of all panes in a dashboard
func (*GrafanaScreenshotter) ScreenshotPanel ¶
func (gs *GrafanaScreenshotter) ScreenshotPanel(ctx context.Context, cfg ScreenshotPanelConfig) ([]byte, error)
ScreenshotPanel takes screenshot of a grafana panel
type ImageReporter ¶ added in v0.2.0
type ImageReporter struct {
// contains filtered or unexported fields
}
func NewImageReporter ¶
func NewImageReporter(screenshotter GrafanaScreenshotter, uploader Uploader) *ImageReporter
type MetaReport ¶ added in v0.2.0
type MetaReport struct {
// contains filtered or unexported fields
}
func NewMetaReport ¶
func NewMetaReport(allowlist []string) (*MetaReport, error)
NewMetaReport creates a meta report the allowlist parameter refers to which keys are valid
type QueriesConfig ¶
type Query ¶
type Query struct { Name string `yaml:"name"` Description string `yaml:"description" default:""` Base string `yaml:"base"` BaseResult float64 Target string `yaml:"target"` TargetResult float64 // TODO(eh-am): implement a default value DiffThreshold float64 `yaml:"diffThresholdPercent"` DiffPercent float64 BiggerIsBetter bool `yaml:"biggerIsBetter"` // contains filtered or unexported fields }
type S3Writer ¶ added in v0.2.0
type S3Writer struct {
// contains filtered or unexported fields
}
func NewS3Writer ¶
NewS3Writer creates a s3 writer it assumes AWS environment variables are setup correctly
type ScreenshotPanelConfig ¶
type TableReport ¶ added in v0.2.0
type TableReport struct {
// contains filtered or unexported fields
}
func NewTableReport ¶
func NewTableReport(q Querier) *TableReport
func (*TableReport) Report ¶ added in v0.2.0
func (r *TableReport) Report(ctx context.Context, qCfg *QueriesConfig) (string, error)
TableReport reports query results from prometheus in markdown format
Click to show internal directories.
Click to hide internal directories.