Documentation ¶
Index ¶
- type DedupStrategy
- type Logs
- type Option
- func CommonLabels() Option
- func DataSource(source string) Option
- func Deduplication(dedup DedupStrategy) Option
- func Description(content string) Option
- func Height(height string) Option
- func HideLogDetails() Option
- func Links(panelLinks ...links.Link) Option
- func Order(order SortOrder) Option
- func PrettifyJSON() Option
- func Repeat(repeat string) Option
- func Span(span float32) Option
- func Time() Option
- func Transparent() Option
- func UniqueLabels() Option
- func WithLokiTarget(query string, options ...loki.Option) Option
- func WrapLines() Option
- type SortOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DedupStrategy ¶
type DedupStrategy string
DedupStrategy represents a deduplication strategy.
const ( None DedupStrategy = "none" Exact DedupStrategy = "exact" Numbers DedupStrategy = "numbers" Signature DedupStrategy = "signature" )
type Option ¶
Option represents an option that can be used to configure a logs panel.
func DataSource ¶
DataSource sets the data source to be used by the panel.
func Deduplication ¶
func Deduplication(dedup DedupStrategy) Option
Deduplication sets the deduplication strategy.
func Description ¶
Description annotates the current visualization with a human-readable description.
func HideLogDetails ¶
func HideLogDetails() Option
HideLogDetails disables the log details view for each log row.
func Order ¶
Order display results in descending or ascending time order. The default is Descending, showing the newest logs first. Set to Ascending to show the oldest log lines first.
func PrettifyJSON ¶
func PrettifyJSON() Option
PrettifyJSON pretty prints all JSON logs. This setting does not affect logs in any format other than JSON.
func Span ¶
Span sets the width of the panel, in grid units. Should be a positive number between 1 and 12. Example: 6.
func Time ¶
func Time() Option
Time displays the "time" column. This is the timestamp associated with the log line as reported from the data source.
func UniqueLabels ¶
func UniqueLabels() Option
UniqueLabels displays the "unique labels" column, which shows only non-common labels.
func WithLokiTarget ¶
WithLokiTarget adds a loki query to the graph.