Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory create a factory for the varnish receiver.
Types ¶
type Config ¶
type Config struct { scraperhelper.ScraperControllerSettings `mapstructure:",squash"` Metrics metadata.MetricsSettings `mapstructure:"metrics"` CacheDir string `mapstructure:"cache_dir"` ExecDir string `mapstructure:"exec_dir"` }
Config defines configuration for varnish metrics receiver.
type FullStats ¶
type FullStats struct { Version int `json:"version"` Timestamp string `json:"timestamp"` Counters Stats `json:"counters"` }
FullStats holds stats from a 6.5+ response.
type Stats ¶
type Stats struct { MAINBackendConn struct { Value int64 `json:"value"` } `json:"MAIN.backend_conn"` MAINBackendUnhealthy struct { Value int64 `json:"value"` } `json:"MAIN.backend_unhealthy"` MAINBackendBusy struct { Value int64 `json:"value"` } `json:"MAIN.backend_busy"` MAINBackendFail struct { Value int64 `json:"value"` } `json:"MAIN.backend_fail"` MAINBackendReuse struct { Value int64 `json:"value"` } `json:"MAIN.backend_reuse"` MAINBackendRecycle struct { Value int64 `json:"value"` } `json:"MAIN.backend_recycle"` MAINBackendRetry struct { Value int64 `json:"value"` } `json:"MAIN.backend_retry"` MAINCacheHit struct { Value int64 `json:"value"` } `json:"MAIN.cache_hit"` MAINCacheHitpass struct { Value int64 `json:"value"` } `json:"MAIN.cache_hitpass"` MAINCacheMiss struct { Value int64 `json:"value"` } `json:"MAIN.cache_miss"` MAINThreadsCreated struct { Value int64 `json:"value"` } `json:"MAIN.threads_created"` MAINThreadsDestroyed struct { Value int64 `json:"value"` } `json:"MAIN.threads_destroyed"` MAINThreadsFailed struct { Value int64 `json:"value"` } `json:"MAIN.threads_failed"` MAINSessConn struct { Value int64 `json:"value"` } `json:"MAIN.sess_conn"` MAINSessFail struct { Value int64 `json:"value"` } `json:"MAIN.sess_fail"` MAINSessDropped struct { Value int64 `json:"value"` } `json:"MAIN.sess_dropped"` MAINReqDropped struct { Value int64 `json:"value"` } `json:"MAIN.req_dropped"` MAINNObject struct { Value int64 `json:"value"` } `json:"MAIN.n_object"` MAINNExpired struct { Value int64 `json:"value"` } `json:"MAIN.n_expired"` MAINNLruNuked struct { Value int64 `json:"value"` } `json:"MAIN.n_lru_nuked"` MAINNLruMoved struct { Value int64 `json:"value"` } `json:"MAIN.n_lru_moved"` MAINClientReq400 struct { Value int64 `json:"value"` } `json:"MAIN.client_req_400"` MAINClientReq417 struct { Value int64 `json:"value"` } `json:"MAIN.client_req_417"` MAINClientResp500 struct { Value int64 `json:"value"` } `json:"MAIN.client_resp_500"` MAINClientReq struct { Value int64 `json:"value"` } `json:"MAIN.client_req"` MAINBackendReq struct { Value int64 `json:"value"` } `json:"MAIN.backend_req"` }
Stats holds the metric stats.
Click to show internal directories.
Click to hide internal directories.