Registry / observability / weaveworks-promrus

weaveworks-promrus

JSON →
library1.2.0gogounverified

Promrus provides a Prometheus hook for the Logrus logging library, exposing log level counters as metrics.

go get github.com/weaveworks/promrus
INSTALL
IMPORT
SIG · WEAVEWORKS-PROMRUS
W
weaveworks-promrus
observabilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

promrus
github.com/weaveworks/promrus

Adds a Prometheus hook to Logrus to expose log metrics.

package main import ( "github.com/sirupsen/logrus" "github.com/weaveworks/promrus" ) func main() { log := logrus.New() hook := promrus.MustNewPrometheusHook() log.Hooks.Add(hook) log.Info("This is an info message") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
42
Resources
weaveworks-promrus — go get weaveworks-promrus · libregistry