Documentation
¶
Index ¶
Constants ¶
const AppsecBlockCounterMetricName = "cs_appsec_block_total"
const AppsecChallengeAcceptedMetricName = "cs_appsec_challenge_accepted_total"
const AppsecChallengeDynamicModuleEvictedMetricName = "cs_appsec_challenge_dynamic_module_evicted_total"
const AppsecChallengeExemptMetricName = "cs_appsec_challenge_exempt_total"
const AppsecChallengeKepochEvictedMetricName = "cs_appsec_challenge_kepoch_evicted_total"
const AppsecChallengeKepochGeneratedMetricName = "cs_appsec_challenge_kepoch_generated_total"
const AppsecChallengeRejectedMetricName = "cs_appsec_challenge_rejected_total"
const AppsecChallengeReobfuscationMetricName = "cs_appsec_challenge_reobfuscation_total"
const AppsecChallengeRequestedMetricName = "cs_appsec_challenge_requested_total"
const AppsecChallengeSubmittedMetricName = "cs_appsec_challenge_submitted_total"
const AppsecFingerprintMismatchMetricName = "cs_appsec_fingerprint_mismatch_total"
const AppsecGlobalParsingHistogramMetricName = "cs_appsec_parsing_time_seconds"
const AppsecInbandParsingHistogramMetricName = "cs_appsec_inband_parsing_time_seconds"
const AppsecOutbandParsingHistogramMetricName = "cs_appsec_outband_parsing_time_seconds"
const AppsecReqCounterMetricName = "cs_appsec_reqs_total"
const AppsecRuleHitsMetricName = "cs_appsec_rule_hits"
const AppsecValidationFailedCounterMetricName = "cs_appsec_validation_failed_total"
const AppsecValidationOKCounterMetricName = "cs_appsec_validation_ok_total"
const BucketPouredMetricName = "cs_bucket_poured_total"
const BucketsCanceledMetricName = "cs_bucket_canceled_total"
const BucketsCurrentCountMetricName = "cs_buckets"
const BucketsInstantiationMetricName = "cs_bucket_instantiation_total"
const BucketsOverflowMetricName = "cs_bucket_overflowed_total"
const BucketsUnderflowMetricName = "cs_bucket_underflowed_total"
const CacheMetricName = "cs_cache_size"
const CloudWatchDatasourceLinesReadMetricName = "cs_cloudwatch_stream_hits_total"
const CloudWatchDatasourceOpenedStreamsMetricName = "cs_cloudwatch_openstreams_total"
const DockerDatasourceLinesReadMetricName = "cs_dockersource_hits_total"
const FileDatasourceLinesReadMetricName = "cs_filesource_hits_total"
const GlobalActiveDecisionsMetricName = "cs_active_decisions"
const GlobalAlertsMetricName = "cs_alerts"
const GlobalBucketPourKoMetricName = "cs_bucket_pour_ko_total"
const GlobalBucketPourOkMetricName = "cs_bucket_pour_ok_total"
const GlobalCsInfoMetricName = "cs_info"
const GlobalMachinesLastHeartbeatTimestampMetricName = "cs_machines_last_heartbeat_timestamp"
const GlobalParserHitsKoMetricName = "cs_parser_hits_ko_total"
const GlobalParserHitsMetricName = "cs_parser_hits_total"
const GlobalParserHitsOkMetricName = "cs_parser_hits_ok_total"
const GlobalParsingHistogramMetricName = "cs_parsing_time_seconds"
const GlobalPourHistogramMetricName = "cs_bucket_pour_seconds"
const HTTPDataSourceLinesReadMetricName = "cs_httpsource_hits_total"
const JournalCtlDataSourceLinesReadMetricName = "cs_journalctlsource_hits_total"
const K8SAuditDataSourceEventCountMetricName = "cs_k8sauditsource_hits_total"
const K8SAuditDataSourceRequestCountMetricName = "cs_k8sauditsource_requests_total"
const KafkaDataSourceLinesReadMetricName = "cs_kafkasource_hits_total"
const KinesisDataSourceLinesReadMetricName = "cs_kinesis_stream_hits_total"
const KinesisDataSourceLinesReadShardsMetricName = "cs_kinesis_shards_hits_total"
const KubernetesDataSourceLinesReadMetricName = "cs_kubernetessource_hits_total"
const LapiBouncerHitsMetricName = "cs_lapi_bouncer_requests_total"
hits per bouncer
const LapiMachineHitsMetricName = "cs_lapi_machine_requests_total"
hits per machine
const LapiNilDecisionsMetricName = "cs_lapi_decisions_ko_total"
keep track of the number of calls (per bouncer) that lead to nil/non-nil responses.
while it's not exact, it's a good way to know - when you have a rutpure bouncer - what is the rate of ok/ko answers you got from lapi
const LapiNonNilDecisionsMetricName = "cs_lapi_decisions_ok_total"
hits per bouncer
const LapiResponseTimeMetricName = "cs_lapi_request_duration_seconds"
const LapiRouteHitsMetricName = "cs_lapi_route_requests_total"
const LokiDataSourceLinesReadMetricName = "cs_lokisource_hits_total"
const NodesHitsKoMetricName = "cs_node_hits_ko_total"
const NodesHitsMetricName = "cs_node_hits_total"
const NodesHitsOkMetricName = "cs_node_hits_ok_total"
const NodesWlHitsMetricName = "cs_node_wl_hits_total"
const NodesWlHitsOkMetricName = "cs_node_wl_hits_ok_total"
const PapiInvalidOrdersReceivedMetricName = "cs_papi_invalid_orders_received_total"
const PapiLastPullTimestampMetricName = "cs_papi_last_pull_timestamp"
const PapiOrdersReceivedMetricName = "cs_papi_orders_received_total"
const PapiPollErrorsMetricName = "cs_papi_poll_errors_total"
const RegexpCacheMetricName = "cs_regexp_cache_size"
const S3DataSourceLinesReadMetricName = "cs_s3_hits_total"
const S3DataSourceObjectsReadMetricName = "cs_s3_objects_total"
const S3DataSourceSQSMessagesReceivedMetricName = "cs_s3_sqs_messages_total"
const SyslogDataSourceLinesParsedMetricName = "cs_syslogsource_parsed_total"
const SyslogDataSourceLinesReceivedMetricName = "cs_syslogsource_hits_total"
const VictorialogsDataSourceLinesReadMetricName = "cs_victorialogssource_hits_total"
const WineventlogDataSourceLinesReadMetricName = "cs_winevtlogsource_hits_total"
Variables ¶
var AcquisitionMetricsNames = []string{}
var AppsecBlockCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecBlockCounterMetricName, Help: "Total events blocked by the Application Security Engine.", }, []string{"source", "appsec_engine"}, )
var AppsecChallengeAccepted = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeAcceptedMetricName, Help: "Total challenge cookies issued, by kind (solved=valid submission, granted=GrantChallengeCookie) and (for granted) operator-supplied reason.", }, []string{"source", "appsec_engine", "kind", "reason"}, )
AppsecChallengeAccepted carries an extra `reason` label so operator-driven grants (kind="granted") can be split by the GrantChallengeCookie reason. For kind="solved" the label is empty: regular submissions have no per-issue reason.
var AppsecChallengeDynamicModuleEvicted = prometheus.NewCounter( prometheus.CounterOpts{ Name: AppsecChallengeDynamicModuleEvictedMetricName, Help: "Total per-epoch dynamic-module cache entries evicted once their epoch left the keyring live window.", }, )
var AppsecChallengeExempt = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeExemptMetricName, Help: "Total requests exempt from the challenge, by reason (bot kind or path class).", }, []string{"source", "appsec_engine", "reason"}, )
AppsecChallengeExempt counts requests flagged exempt from the challenge by the ExemptFromChallenge helper, split by the mandatory reason (a bot kind like "gptbot" or a path class like "api"). Counted once per request.
var AppsecChallengeKepochEvicted = prometheus.NewCounter( prometheus.CounterOpts{ Name: AppsecChallengeKepochEvictedMetricName, Help: "Total per-epoch challenge signing keys evicted from the keyring cache (generated minus evicted is the live cache size).", }, )
var AppsecChallengeKepochGenerated = prometheus.NewCounter( prometheus.CounterOpts{ Name: AppsecChallengeKepochGeneratedMetricName, Help: "Total per-epoch challenge signing keys derived (k_epoch regenerations).", }, )
var AppsecChallengeRejected = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeRejectedMetricName, Help: "Total challenge/cookie rejections, by kind (protocol=crypto/PoW failure, submission=RejectSubmission, cookie=invalid incoming cookie) and reason.", }, []string{"source", "appsec_engine", "kind", "reason"}, )
var AppsecChallengeReobfuscation = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeReobfuscationMetricName, Help: "Total JS obfuscation passes run by the challenge runtime, by bundle (dynamic=per-epoch sign-key module).", }, []string{"bundle"}, )
Each obfuscation pass is CPU-expensive, so this is the headline signal for obfuscator load. Only the per-epoch sign-key module is re-obfuscated at runtime now (bundle="dynamic"); the public challenge code is obfuscated once at build time and the fpscanner is served unobfuscated, so the historical bundle="library" series is retired.
var AppsecChallengeRequested = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeRequestedMetricName, Help: "Total challenges served by the Application Security Engine.", }, []string{"source", "appsec_engine"}, )
var AppsecChallengeSubmitted = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecChallengeSubmittedMetricName, Help: "Total challenge responses received by the Application Security Engine.", }, []string{"source", "appsec_engine"}, )
var AppsecFingerprintMismatch = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecFingerprintMismatchMetricName, Help: "Count of fingerprint mismatch signals fired per reason and severity.", }, []string{"reason", "severity", "appsec_engine"}, )
var AppsecGlobalParsingHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Help: "Time spent processing a request by the Application Security Engine.", Name: AppsecGlobalParsingHistogramMetricName, Buckets: []float64{0.0001, 0.00025, 0.0005, 0.001, 0.0025, 0.0050, 0.01, 0.025, 0.05, 0.1, 0.25}, }, []string{"source", "appsec_engine"}, )
var AppsecInbandParsingHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Help: "Time spent processing a request by the inband Application Security Engine.", Name: AppsecInbandParsingHistogramMetricName, Buckets: []float64{0.0001, 0.00025, 0.0005, 0.001, 0.0025, 0.0050, 0.01, 0.025, 0.05, 0.1, 0.25}, }, []string{"source", "appsec_engine"}, )
var AppsecOutbandParsingHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Help: "Time spent processing a request by the Application Security Engine.", Name: AppsecOutbandParsingHistogramMetricName, Buckets: []float64{0.0001, 0.00025, 0.0005, 0.001, 0.0025, 0.0050, 0.01, 0.025, 0.05, 0.1, 0.25}, }, []string{"source", "appsec_engine"}, )
var AppsecReqCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecReqCounterMetricName, Help: "Total events processed by the Application Security Engine.", }, []string{"source", "appsec_engine"}, )
var AppsecRuleHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecRuleHitsMetricName, Help: "Count of triggered rule, by rule_name, type (inband/outofband), appsec_engine and source", }, []string{"rule_name", "type", "appsec_engine", "source"}, )
var AppsecValidationFailedCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecValidationFailedCounterMetricName, Help: "Count of requests that failed OpenAPI schema validation, by schema_ref and reason.", }, []string{"source", "appsec_engine", "schema_ref", "reason"}, )
AppsecValidationFailedCounter counts failed OpenAPI schema validations. reason is one of a fixed set — "parameter", "request_body", "security", "route_not_found", "method_not_allowed", "internal".
var AppsecValidationOKCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: AppsecValidationOKCounterMetricName, Help: "Count of requests that passed OpenAPI schema validation, by schema_ref.", }, []string{"source", "appsec_engine", "schema_ref"}, )
AppsecValidationOKCounter counts successful OpenAPI schema validations.
var BucketsCanceled = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: BucketsCanceledMetricName, Help: "Total buckets canceled.", }, []string{"name"}, )
var BucketsCurrentCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: BucketsCurrentCountMetricName, Help: "Number of buckets that currently exist.", }, []string{"name"}, )
var BucketsInstantiation = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: BucketsInstantiationMetricName, Help: "Total buckets were instantiated.", }, []string{"name"}, )
var BucketsOverflow = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: BucketsOverflowMetricName, Help: "Total buckets overflowed.", }, []string{"name"}, )
var BucketsPour = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: BucketPouredMetricName, Help: "Total events were poured in bucket.", }, []string{"source", "type", "name"}, )
var BucketsUnderflow = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: BucketsUnderflowMetricName, Help: "Total buckets underflowed.", }, []string{"name"}, )
var CacheMetrics = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: CacheMetricName, Help: "Entries per cache.", }, []string{"name", "type"}, )
var CloudWatchDatasourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: CloudWatchDatasourceLinesReadMetricName, Help: "Number of events read from stream.", }, []string{"group", "stream", "datasource_type", "acquis_type"}, )
var CloudWatchDatasourceOpenedStreams = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: CloudWatchDatasourceOpenedStreamsMetricName, Help: "Number of opened stream within group.", }, []string{"group"}, )
var DockerDatasourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: DockerDatasourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"})
var ErrInvalidMetricsLevel = errors.New("invalid metrics level")
var FileDatasourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: FileDatasourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"}, )
var GlobalActiveDecisions = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: GlobalActiveDecisionsMetricName, Help: "Number of active decisions.", }, []string{"reason", "origin", "action"}, )
var GlobalAlerts = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: GlobalAlertsMetricName, Help: "Number of alerts (excluding CAPI).", }, []string{"reason"}, )
var GlobalBucketPourKo = prometheus.NewCounter( prometheus.CounterOpts{ Name: GlobalBucketPourKoMetricName, Help: "Total events were not poured in a bucket.", }, )
var GlobalBucketPourOk = prometheus.NewCounter( prometheus.CounterOpts{ Name: GlobalBucketPourOkMetricName, Help: "Total events were poured in at least one bucket.", }, )
var GlobalCsInfo = prometheus.NewGauge( prometheus.GaugeOpts{ Name: GlobalCsInfoMetricName, Help: "Information about Crowdsec.", ConstLabels: prometheus.Labels{"version": version.String()}, }, )
var GlobalMachinesLastHeartbeatTimestamp = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: GlobalMachinesLastHeartbeatTimestampMetricName, Help: "Unix timestamp of a machine's last heartbeat.", }, []string{"machine"}, )
var GlobalParserHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: GlobalParserHitsMetricName, Help: "Total events entered the parser.", }, []string{"source", "type"}, )
var GlobalParserHitsKo = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: GlobalParserHitsKoMetricName, Help: "Total events were unsuccessfully parsed.", }, []string{"source", "type", "acquis_type"}, )
var GlobalParserHitsOk = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: GlobalParserHitsOkMetricName, Help: "Total events were successfully parsed.", }, []string{"source", "type", "acquis_type"}, )
var GlobalParsingHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Help: "Time spent parsing a line", Name: GlobalParsingHistogramMetricName, Buckets: []float64{0.0005, 0.001, 0.0015, 0.002, 0.0025, 0.003, 0.004, 0.005, 0.0075, 0.01}, }, []string{"type", "source"}, )
var GlobalPourHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: GlobalPourHistogramMetricName, Help: "Time spent pouring an event to buckets.", Buckets: []float64{0.001, 0.002, 0.005, 0.01, 0.015, 0.02, 0.03, 0.04, 0.05}, }, []string{"type", "source"}, )
var HTTPDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: HTTPDataSourceLinesReadMetricName, Help: "Total lines that were read from http source", }, []string{"path", "src", "datasource_type", "acquis_type"})
var JournalCtlDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: JournalCtlDataSourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"})
var K8SAuditDataSourceEventCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: K8SAuditDataSourceEventCountMetricName, Help: "Total number of events received by k8s-audit source", }, []string{"source", "datasource_type", "acquis_type"})
var K8SAuditDataSourceRequestCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: K8SAuditDataSourceRequestCountMetricName, Help: "Total number of requests received", }, []string{"source"})
var KafkaDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: KafkaDataSourceLinesReadMetricName, Help: "Total lines that were read from topic", }, []string{"topic", "datasource_type", "acquis_type"})
var KinesisDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: KinesisDataSourceLinesReadMetricName, Help: "Number of events read per stream.", }, []string{"stream", "datasource_type", "acquis_type"}, )
var KinesisDataSourceLinesReadShards = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: KinesisDataSourceLinesReadShardsMetricName, Help: "Number of events read per shard.", }, []string{"stream", "shard"}, )
var KubernetesDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: KubernetesDataSourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"})
var LapiBouncerHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LapiBouncerHitsMetricName, Help: "Number of calls to each route per method grouped by bouncers.", }, []string{"bouncer", "route", "method"}, )
var LapiMachineHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LapiMachineHitsMetricName, Help: "Number of calls to each route per method grouped by machines.", }, []string{"machine", "route", "method"}, )
var LapiNilDecisions = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LapiNilDecisionsMetricName, Help: "Number of calls to /decisions that returned nil result.", }, []string{"bouncer"}, )
var LapiNonNilDecisions = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LapiNonNilDecisionsMetricName, Help: "Number of calls to /decisions that returned non-nil result.", }, []string{"bouncer"}, )
var LapiResponseTime = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: LapiResponseTimeMetricName, Help: "Response time of LAPI", Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.2, 0.3, 0.4, 0.5, 0.75, 1}, }, []string{"endpoint", "method"}, )
var LapiRouteHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LapiRouteHitsMetricName, Help: "Number of calls to each route per method.", }, []string{"route", "method"}, )
var LokiDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: LokiDataSourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"})
var NodesHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: NodesHitsMetricName, Help: "Total events entered node.", }, []string{"source", "type", "name", "stage", "acquis_type"}, )
var NodesHitsKo = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: NodesHitsKoMetricName, Help: "Total events unsuccessfully exited node.", }, []string{"source", "type", "name", "stage", "acquis_type"}, )
var NodesHitsOk = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: NodesHitsOkMetricName, Help: "Total events successfully exited node.", }, []string{"source", "type", "name", "stage", "acquis_type"}, )
var NodesWlHits = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: NodesWlHitsMetricName, Help: "Total events processed by whitelist node.", }, []string{"source", "type", "name", "reason", "stage", "acquis_type"}, )
var NodesWlHitsOk = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: NodesWlHitsOkMetricName, Help: "Total events successfully whitelisted by node.", }, []string{"source", "type", "name", "reason", "stage", "acquis_type"}, )
var PapiInvalidOrdersReceived = prometheus.NewCounter( prometheus.CounterOpts{ Name: PapiInvalidOrdersReceivedMetricName, Help: "Number of invalid orders received by papi.", }, )
var PapiLastPullTimestamp = prometheus.NewGauge( prometheus.GaugeOpts{ Name: PapiLastPullTimestampMetricName, Help: "Unix timestamp of the last successful PAPI pull.", }, )
var PapiOrdersReceived = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: PapiOrdersReceivedMetricName, Help: "Number of orders received by papi.", }, []string{"type", "command"}, )
var PapiPollErrors = prometheus.NewCounter( prometheus.CounterOpts{ Name: PapiPollErrorsMetricName, Help: "Number of errors encountered while polling PAPI.", }, )
var RegexpCacheMetrics = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: RegexpCacheMetricName, Help: "Entries per regexp cache.", }, []string{"name"}, )
var S3DataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: S3DataSourceLinesReadMetricName, Help: "Number of events read per bucket.", }, []string{"bucket", "datasource_type", "acquis_type"}, )
var S3DataSourceObjectsRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: S3DataSourceObjectsReadMetricName, Help: "Number of objects read per bucket.", }, []string{"bucket"}, )
var S3DataSourceSQSMessagesReceived = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: S3DataSourceSQSMessagesReceivedMetricName, Help: "Number of SQS messages received per queue.", }, []string{"queue"}, )
var SyslogDataSourceLinesParsed = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: SyslogDataSourceLinesParsedMetricName, Help: "Total lines that were successfully parsed", }, []string{"source", "type", "datasource_type", "acquis_type"})
var SyslogDataSourceLinesReceived = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: SyslogDataSourceLinesReceivedMetricName, Help: "Total lines that were received.", }, []string{"source", "datasource_type", "acquis_type"})
var VictorialogsDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: VictorialogsDataSourceLinesReadMetricName, Help: "Total lines that were read.", }, []string{"source", "datasource_type", "acquis_type"})
var WineventlogDataSourceLinesRead = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: WineventlogDataSourceLinesReadMetricName, Help: "Total event that were read.", }, []string{"source", "datasource_type", "acquis_type"})
Functions ¶
func RegisterAcquisitionMetric ¶
func RegisterAcquisitionMetric(metricName string)
func RegisterMetrics ¶
func RegisterMetrics(metricsLevel MetricsLevelConfig) error
Types ¶
type AcquisitionMetricsLevel ¶
type AcquisitionMetricsLevel int
const ( AcquisitionMetricsLevelNone AcquisitionMetricsLevel = iota // No metrics AcquisitionMetricsLevelAggregated // Aggregated metrics AcquisitionMetricsLevelFull // Full metrics AcquisitionMetricsLevelDefault = AcquisitionMetricsLevelFull // Default metrics level )
type MetricsLevelConfig ¶
type MetricsLevelConfig string
const ( MetricsLevelNone MetricsLevelConfig = "none" MetricsLevelAggregated MetricsLevelConfig = "aggregated" MetricsLevelFull MetricsLevelConfig = "full" // MetricsLevelDefault is the default metrics level. MetricsLevelDefault MetricsLevelConfig = MetricsLevelFull )
Source Files
¶
- acquisition.go
- acquisition_appsec.go
- acquisition_cloudwatch.go
- acquisition_docker.go
- acquisition_file.go
- acquisition_http.go
- acquisition_journalctl.go
- acquisition_k8s_audit.go
- acquisition_kafka.go
- acquisition_kinesis.go
- acquisition_kubernetes.go
- acquisition_loki.go
- acquisition_s3.go
- acquisition_syslog.go
- acquisition_victorialogs.go
- acquisition_wineventlog.go
- cache.go
- expr.go
- global.go
- lapi.go
- leaky.go
- metrics.go
- papi.go
- parser.go