sre

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 1 Imported by: 0

README

SRE framework

Framework for golang applications which helps to send metrics, logs, traces and events into different monitoring tools or vendors.

godoc go report codecov build status

Features

  • Provide plain text, json logs with trace ID (if log entry is based on a span) and source line info
  • Provide additional labels and tags for metrics, like: source line, service name and it's version
  • Support logging tools (aka logs):
  • Support monitoring tools (aka metrics)
  • Support tracing tools (aka traces)
  • Support eventing tools (aka events)

Usage

Requirements
Set envs

Set proper GOROOT and PATH variables

export GOROOT="$HOME/go/root/1.17.4"
export PATH="$PATH:$GOROOT/bin"
Get Go modules

Set go.mod manually

module sre

go 1.17

require github.com/devopsext/sre vX.Y.Z
Collect go modules
go get
go: finding module for package github.com/devopsext/sre/provider
go: finding module for package github.com/devopsext/sre/common
go: found github.com/devopsext/sre/common in github.com/devopsext/sre vX.Y.Z
go: found github.com/devopsext/sre/provider in github.com/devopsext/sre vX.Y.Z

*vX.Y.Z - tag (version) of the framework, for instance => v0.0.7

Run one of example

Framework in other projects

  • devopsext/events Kubernetes & Alertmanager events to Telegram, Slack, Workchat and other messengers.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL