Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTypeLabel string = "event_type" ExporterName string = "exporter" EnricherName string = "enricher" MetricLabel string = "metric" EBPFProgramLabel string = "program" StatsKind string = "kind" PipelineEBPFEvents string = "ebpf_events" PipelineNetflows string = "netflows" PipelineStats string = "stats" PipelineInitialProcessTree string = "initial_process_tree" )
Variables ¶
View Source
var ( AgentPulledEventsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_kernel_pulled_events_total", Help: "Counter for tracking pulled events from kernel rate", }, []string{EventTypeLabel}) AgentPulledEventsBytesTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_kernel_pulled_events_bytes_total", Help: "Counter for tracking pulled events bytes from kernel rate", }, []string{EventTypeLabel}) AgentSkippedEventsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_skipped_events_total", Help: "Counter for tracking skipped events rate", }, []string{EventTypeLabel}) AgentDroppedEventsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_dropped_events_total", Help: "Counter for tracking dropped events rate", }, []string{EventTypeLabel}) AgentDecodeEventErrorsTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_decode_event_errors_total", Help: "Counter for agent decode events errors rate", }) AgentAnalyzersQueueDroppedEventsTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_analyzers_queue_dropped_events_total", Help: "Counter for agent analyzers dropped events rate", }) AgentLoadContainerByCgroup = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_load_container_by_cgroup_total", Help: "Counter for tracking amount of containers loaded by cgroup rather than via container id", }) AgentDNSPacketsTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_dns_packets_total", Help: "Counter for tracking the total number of DNS events we received to process", }) AgentFindCgroupFS = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_find_cgroup_from_filesystem", Help: "Counter for keeping track how often we fall back to finding cgroups via the filesystem", }) AgentExporterSendTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_exporter_send_total", Help: "Send exporter events", }, []string{ExporterName}) AgentExporterSendErrorsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_exporter_send_errors_total", Help: "Dropped exporter events", }, []string{ExporterName}) AgentExporterQueueDroppedTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_exporter_queue_dropped_total", Help: "Dropped exporter events", }, []string{ExporterName}) AgentEnricherEventsTotalEnriched = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_enricher_events_total_enriched", Help: "Enriched events", }, []string{EnricherName}) AgentEnricherEventsTotalErrors = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_enricher_events_total_errors", Help: "Enricher errors", }, []string{EnricherName}) AgentFileHashEnricherProcMissingTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_file_hash_enricher_proc_missing_total", Help: "Counter for tracking process files missing during file hash enrichment", }) AgentFetchKubeIPInfoErrorsTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "kvisor_agent_fetch_kube_ip_info_errors_total", Help: "Counter for tracking kube info calls errors", }) EBPFExposedMetrics = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "kvisor_agent_ebpf_exposed_metrics", }, []string{MetricLabel}) EBPFProgramRunTimeMetrics = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "kvisor_agent_ebpf_program_run_time_ms", Help: "Run time of eBPF programs in milliseconds as reported by the kernel", }, []string{EBPFProgramLabel}) EBPFProgramRunCountMetrics = promauto.NewGaugeVec(prometheus.GaugeOpts{ Name: "kvisor_agent_ebpf_program_run_count", Help: "Number of times a certain eBPF program run as reported by the kernel", }, []string{EBPFProgramLabel}) AgentStatsScrapeErrorsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_stats_scrape_errors_total", Help: "Stats scrape errors", }, []string{StatsKind}) AgentContainersCount = promauto.NewGauge(prometheus.GaugeOpts{ Name: "kvisor_agent_containers_count", }) AgentDataBatchBytesSentTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_data_batch_bytes_sent_total", }, []string{"pipeline"}) AgentDataBatchItemsSentTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_data_batch_items_sent_total", }, []string{"pipeline"}) AgentDataBatchExporterErrorsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_data_batch_exporter_errors_total", }, []string{"exporter"}) AgentDataBatchExportCallsTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "kvisor_agent_data_batch_export_calls_total", }, []string{"exporter"}) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.