mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
common: rename augment to hydrate
Funnier word.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Akvorado: flow collector, augmenter and exporter.
|
||||
# Akvorado: flow collector, hydrater and exporter.
|
||||
|
||||
This program receives flows (currently Netflow), augments them with
|
||||
This program receives flows (currently Netflow), hydrates them with
|
||||
interface names (using SNMP), geo information (using MaxMind), and
|
||||
exports them to Kafka.
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ var ServeOptions serveOptions
|
||||
var serveCmd = &cobra.Command{
|
||||
Use: "serve",
|
||||
Short: "Start akvorado",
|
||||
Long: `Akvorado is a Netflow collector. It augments flows with information from SNMP and GeoIP
|
||||
Long: `Akvorado is a Netflow collector. It hydrates flows with information from SNMP and GeoIP
|
||||
and exports them to Kafka.`,
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"akvorado/snmp"
|
||||
)
|
||||
|
||||
// AugmentFlow adds more data to a flow.
|
||||
func (c *Component) AugmentFlow(sampler string, flow *flow.FlowMessage) (skip bool) {
|
||||
// HydrateFlow adds more data to a flow.
|
||||
func (c *Component) HydrateFlow(sampler string, flow *flow.FlowMessage) (skip bool) {
|
||||
errLimiter := rate.NewLimiter(rate.Every(time.Minute), 10)
|
||||
if flow.InIf != 0 {
|
||||
samplerName, iface, err := c.d.Snmp.Lookup(sampler, uint(flow.InIf))
|
||||
@@ -98,7 +98,8 @@ func (c *Component) runWorker(workerID int) error {
|
||||
sampler := net.IP(flow.SamplerAddress).String()
|
||||
c.metrics.flowsReceived.WithLabelValues(sampler).Inc()
|
||||
|
||||
if skip := c.AugmentFlow(sampler, flow); skip {
|
||||
// Hydratation
|
||||
if skip := c.HydrateFlow(sampler, flow); skip {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ hide:
|
||||
|
||||
{ .akvorado-logo }
|
||||
|
||||
*Akvorado* is a flow collector, augmenter and exporter. It receives
|
||||
*Akvorado* is a flow collector, hydrater and exporter. It receives
|
||||
flows, adds some data like interface names and geo information, and
|
||||
exports them to Kafka. [Akvorado][] means "water wheel" in Esperanto.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user