Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SeverityLevels = map[int32]string{
0: "emergency",
1: "alert",
2: "critical",
3: "error",
4: "warning",
5: "notice",
6: "informational",
7: "debug",
}
SeverityLevels maps severity levels to severity string levels.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics holds a set of gelf metrics.
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *Metrics
NewMetrics creates a new set of gelf metrics. If reg is non-nil, the metrics will be registered.
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target listens to gelf messages on udp.
func NewTarget ¶
func NewTarget( metrics *Metrics, logger log.Logger, handler loki.EntryHandler, relabel []*relabel.Config, config *scrapeconfig.GelfTargetConfig, ) (*Target, error)
NewTarget configures a new Gelf Target.
func (*Target) Details ¶
func (t *Target) Details() interface{}
Details returns target-specific details.
func (*Target) DiscoveredLabels ¶
DiscoveredLabels returns the set of labels discovered by the gelf target, which is always nil. Implements Target.
func (*Target) Labels ¶
Labels returns the set of labels that statically apply to all log entries produced by the GelfTarget.
Click to show internal directories.
Click to hide internal directories.