Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LogsExpvars contains metrics for the logs agent. LogsExpvars *expvar.Map // LogsDecoded is the total number of decoded logs LogsDecoded = expvar.Int{} // TlmLogsDecoded is the total number of decoded logs TlmLogsDecoded = telemetry.NewCounter("logs", "decoded", nil, "Total number of decoded logs") // LogsProcessed is the total number of processed logs. LogsProcessed = expvar.Int{} // TlmLogsProcessed is the total number of processed logs. TlmLogsProcessed = telemetry.NewCounter("logs", "processed", nil, "Total number of processed logs") // LogsSent is the total number of sent logs. LogsSent = expvar.Int{} // TlmLogsSent is the total number of sent logs. TlmLogsSent = telemetry.NewCounter("logs", "sent", nil, "Total number of sent logs") // DestinationErrors is the total number of network errors. DestinationErrors = expvar.Int{} // TlmDestinationErrors is the total number of network errors. TlmDestinationErrors = telemetry.NewCounter("logs", "network_errors", nil, "Total number of network errors") // DestinationLogsDropped is the total number of logs dropped per Destination DestinationLogsDropped = expvar.Map{} // TlmLogsDropped is the total number of logs dropped per Destination TlmLogsDropped = telemetry.NewCounter("logs", "dropped", []string{"destination"}, "Total number of logs dropped per Destination") // BytesSent is the total number of sent bytes before encoding if any BytesSent = expvar.Int{} // TlmBytesSent is the total number of sent bytes before encoding if any TlmBytesSent = telemetry.NewCounter("logs", "bytes_sent", nil, "Total number of bytes send before encoding if any") // RetryCount is the total number of times we have retried payloads that failed to send RetryCount = expvar.Int{} // TlmRetryCountis the total number of times we have retried payloads that failed to send TlmRetryCount = telemetry.NewCounter("logs", "retry_count", nil, "Total number of retried paylaods") // RetryTimeSpent is the total time spent retrying payloads that failed to send RetryTimeSpent = expvar.Int{} // EncodedBytesSent is the total number of sent bytes after encoding if any EncodedBytesSent = expvar.Int{} // TlmEncodedBytesSent is the total number of sent bytes after encoding if any TlmEncodedBytesSent = telemetry.NewCounter("logs", "encoded_bytes_sent", nil, "Total number of sent bytes after encoding if any") // SenderLatency the last reported latency value from the http sender (ms) SenderLatency = expvar.Int{} // TlmSenderLatency a histogram of http sender latency (ms) TlmSenderLatency = telemetry.NewHistogram("logs", "sender_latency", nil, "Histogram of http sender latency in ms", []float64{10, 25, 50, 75, 100, 250, 500, 1000, 10000}) // DestinationExpVars a map of sender utilization metrics for each http destination DestinationExpVars = expvar.Map{} // TODO: Add LogsCollected for the total number of collected logs. //nolint:revive // TODO(AML) Fix revive linter DestinationHttpRespByStatusAndUrl = expvar.Map{} //nolint:revive // TODO(AML) Fix revive linter TlmDestinationHttpRespByStatusAndUrl = telemetry.NewCounter("logs", "destination_http_resp", []string{"status_code", "url"}, "Count of http responses by status code and destination url") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.