heroku

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-2-Clause, BSD-3-Clause, PostgreSQL Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func SetupHttpHandlerLogs

func SetupHttpHandlerLogs(ctx context.Context, wg *sync.WaitGroup, globalCollectionOpts state.CollectionOpts, logger *util.Logger, servers []*state.Server, parsedLogStream chan state.ParsedLogStreamItem)

Types

type HttpSyslogMessage added in v0.50.0

type HttpSyslogMessage struct {
	HeaderTimestamp string
	HeaderProcID    string
	Content         []byte
	Path            string
}

func ReadHerokuPostgresSyslogMessages added in v0.50.0

func ReadHerokuPostgresSyslogMessages(r io.Reader) []HttpSyslogMessage

Reads log messages in the Syslog TCP protocol octet counting framing method

See format documentation here: - https://devcenter.heroku.com/articles/log-drains#https-drains - https://datatracker.ietf.org/doc/html/rfc6587#section-3.4.1

Discards all syslog messages not related to Heroku Postgres

type SystemSample

type SystemSample struct {
	Source            string  `logfmt:"source"`
	LoadAvg1min       float64 `logfmt:"sample#load-avg-1m"`
	LoadAvg5min       float64 `logfmt:"sample#load-avg-5m"`
	LoadAvg15min      float64 `logfmt:"sample#load-avg-15m"`
	MemoryPostgresKb  string  `logfmt:"sample#memory-postgres"`
	MemoryTotalUsedKb string  `logfmt:"sample#memory-total"`
	MemoryFreeKb      string  `logfmt:"sample#memory-free"`
	MemoryCachedKb    string  `logfmt:"sample#memory-cached"`
	StorageBytesUsed  string  `logfmt:"sample#db_size"`
	ReadIops          float64 `logfmt:"sample#read-iops"`
	WriteIops         float64 `logfmt:"sample#write-iops"`
}

Jump to

Keyboard shortcuts

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