metal-stack / firewall-controller

A kubernetes controller running on bare-metal firewalls, creating nftables rules, configures suricata, collects network metrics
MIT License
47 stars 4 forks source link

collect network usage #29

Closed majst01 closed 4 years ago

majst01 commented 4 years ago

In order to be able to collect network usage data i propose the following solution:

We should add a flag to every network in metal-api the specify if this network must be accounted or not.

node-exporter is already installed.

To scrape the output of node-exporter, the textparse package of prometheus is able to parse the metrics: https://github.com/prometheus/prometheus/blob/master/pkg/textparse

@chbmuc @Gerrit91 @mwindower

mwennrich commented 4 years ago

just a reminder: network usage gets also collected on the switch interfaces

majst01 commented 4 years ago

Yes but scraping these metrics from the switch and put them into relation to a actual cluster is difficult.