Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HerokuLogParser = logs.NewLogParser(logs.LogPrefixHeroku2, nil, false)
Functions ¶
func SetupHttpHandlerLogs ¶
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"` }
Click to show internal directories.
Click to hide internal directories.