Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxPayloadSize = 1024 * 1024
View Source
const DnstapFstrmControlHeaderSize = 42
View Source
const DnstapFstrmMsgHeaderSize = 4
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(bs json.RawMessage) (types.OutputPlugin, error)
func ToLabelSet ¶
func ToLabelSet(dm *types.DnstapMessage) model.LabelSet
Types ¶
type Loki ¶
type Loki struct {
plugin.PluginCommon
sync.Mutex
MaxStream int
MaxLineSize int
JSONIncludeKeys []string
JSONExcludeKeys []string
client.Config
client.Client
*output.DnstapOutput
// contains filtered or unexported fields
}
The loki plugin outputs messages to the loki server.
func (*Loki) SetOutputContext ¶
func (f *Loki) SetOutputContext(oc *types.OutputContext)
Click to show internal directories.
Click to hide internal directories.