openinstrument

package module
v0.0.0-...-f53b987 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

openinstrument

A suite of tools for collecting, recording, aggregating and graphing any sort of timeseries data.

Includes:

  • A dynamic library for collecting stats from inside a running binary.
  • A timeseries storage server supporting very high throughput additions and using as much storage as you like.
  • A JavaScript? graphing library to display recorded timeseries.
  • Tools to collect existing stats by SNMP and store them in the data store.
  • An RPC library to create your own tools to read and write to the data store.

This is still in very early development, and not yet suitable for anybody who doesn't like code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContextWithLog

func GetContextWithLog(ctx context.Context) (context.Context, *oproto.OperationLog)

func GetLog

func GetLog(ctx context.Context) *oproto.OperationLog

func LogBlock

func LogBlock(ctx context.Context, format string, args ...interface{}) func()

func LogContext

func LogContext(ctx context.Context) context.Context

func Logf

func Logf(ctx context.Context, format string, args ...interface{}) context.Context

func NowMs

func NowMs() uint64

func ProtoText

func ProtoText(msg proto.Message) string

func ReadDirNames

func ReadDirNames(directory string) ([]string, error)

func SafeWriteFile

func SafeWriteFile(filename string, msg proto.Message) error

func StringLog

func StringLog(ctx context.Context) string

Types

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer(ctx context.Context, format string, args ...interface{}) *Timer

func (*Timer) Stop

func (t *Timer) Stop() uint64

Directories

Path Synopsis
Package openinstrument_proto is a generated protocol buffer package.
Package openinstrument_proto is a generated protocol buffer package.
ast
tools
add
get

Jump to

Keyboard shortcuts

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