Documentation
¶
Index ¶
Constants ¶
View Source
const Type config.Type = "httpdreceiver"
Type is the component type name.
Variables ¶
View Source
var L = Labels
L contains the possible metric labels that can be used. L is an alias for Labels.
View Source
var LabelScoreboardState = struct { Open string Waiting string Starting string Reading string Sending string Keepalive string Dnslookup string Closing string Logging string Finishing string IdleCleanup string }{ "open", "waiting", "starting", "reading", "sending", "keepalive", "dnslookup", "closing", "logging", "finishing", "idle_cleanup", }
LabelScoreboardState are the possible values that the label "scoreboard_state" can have.
View Source
var LabelWorkersState = struct { Busy string Idle string }{ "busy", "idle", }
LabelWorkersState are the possible values that the label "workers_state" can have.
View Source
var Labels = struct { // ScoreboardState (The state of a connection.) ScoreboardState string // ServerName (The name of the Apache HTTP server.) ServerName string // WorkersState (The state of workers.) WorkersState string }{ "state", "server_name", "state", }
Labels contains the possible metric labels that can be used.
View Source
var M = Metrics
M contains a set of methods for each metric that help with manipulating those metrics. M is an alias for Metrics
View Source
var Metrics = &metricStruct{ &metricImpl{ "httpd.current_connections", func(metric pdata.Metric) { metric.SetName("httpd.current_connections") metric.SetDescription("The number of active connections currently attached to the HTTP server.") metric.SetUnit("connections") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(false) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "httpd.requests", func(metric pdata.Metric) { metric.SetName("httpd.requests") metric.SetDescription("The number of requests serviced by the HTTP server per second.") metric.SetUnit("1") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(true) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "httpd.scoreboard", func(metric pdata.Metric) { metric.SetName("httpd.scoreboard") metric.SetDescription("The number of connections in each state.") metric.SetUnit("scoreboard") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(false) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "httpd.traffic", func(metric pdata.Metric) { metric.SetName("httpd.traffic") metric.SetDescription("Total HTTP server traffic.") metric.SetUnit("By") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(true) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "httpd.uptime", func(metric pdata.Metric) { metric.SetName("httpd.uptime") metric.SetDescription("The amount of time that the server has been running in seconds.") metric.SetUnit("s") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(true) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, &metricImpl{ "httpd.workers", func(metric pdata.Metric) { metric.SetName("httpd.workers") metric.SetDescription("The number of workers currently attached to the HTTP server.") metric.SetUnit("connections") metric.SetDataType(pdata.MetricDataTypeSum) metric.Sum().SetIsMonotonic(false) metric.Sum().SetAggregationTemporality(pdata.MetricAggregationTemporalityCumulative) }, }, }
Metrics contains a set of methods for each metric that help with manipulating those metrics.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.