Documentation ¶
Overview ¶
Package uwsgi implements a telegraf plugin for collecting uwsgi stats from the uwsgi stats server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // Tags AppID int `json:"id"` // Fields Modifier1 int `json:"modifier1"` Requests int `json:"requests"` StartupTime int `json:"startup_time"` Exceptions int `json:"exceptions"` }
App defines the app metric structure.
type Core ¶
type Core struct { // Tags CoreID int `json:"id"` // Fields Requests int `json:"requests"` StaticRequests int `json:"static_requests"` RoutedRequests int `json:"routed_requests"` OffloadedRequests int `json:"offloaded_requests"` WriteErrors int `json:"write_errors"` ReadErrors int `json:"read_errors"` InRequest int `json:"in_request"` }
Core defines the core metric structure.
type StatsServer ¶
type StatsServer struct { PID int `json:"pid"` UID int `json:"uid"` GID int `json:"gid"` Version string `json:"version"` // Fields ListenQueue int `json:"listen_queue"` ListenQueueErrors int `json:"listen_queue_errors"` SignalQueue int `json:"signal_queue"` Load int `json:"load"` Workers []*Worker `json:"workers"` // contains filtered or unexported fields }
StatsServer defines the stats server structure.
type Uwsgi ¶
type Uwsgi struct { Servers []string `toml:"servers"` Timeout config.Duration `toml:"timeout"` // contains filtered or unexported fields }
Uwsgi server struct
func (*Uwsgi) Description ¶
Description returns the plugin description
func (*Uwsgi) Gather ¶
func (u *Uwsgi) Gather(acc telegraf.Accumulator) error
Gather collect data from uWSGI Server
func (*Uwsgi) SampleConfig ¶
SampleConfig returns the sample configuration
type Worker ¶
type Worker struct { // Tags WorkerID int `json:"id"` PID int `json:"pid"` // Fields Accepting int `json:"accepting"` Requests int `json:"requests"` DeltaRequests int `json:"delta_requests"` Exceptions int `json:"exceptions"` HarakiriCount int `json:"harakiri_count"` Signals int `json:"signals"` SignalQueue int `json:"signal_queue"` Status string `json:"status"` Rss int `json:"rss"` Vsz int `json:"vsz"` RunningTime int `json:"running_time"` LastSpawn int `json:"last_spawn"` RespawnCount int `json:"respawn_count"` Tx int `json:"tx"` AvgRt int `json:"avg_rt"` Apps []*App `json:"apps"` Cores []*Core `json:"cores"` }
Worker defines the worker metric structure.
Click to show internal directories.
Click to hide internal directories.