-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src_port, dst_port, protocol details #13
Comments
Hi @vishnubraj, It's definitely possible, but not something that I would recommend. By adding source and destination ports, it would result in very high cardinality metrics (you'd have a unique combination of every label type). This not only would slow down queries but would significantly increase the amount of data stored in Prometheus. If you were to do this, you would need to first export the data from pmacct, with something like this in your
(other options are laid out here) And then the following sections of the Kafka consumer would need to be updated: flow-exporter/internal/consumer/consumer.go Lines 17 to 33 in e8e2114
flow-exporter/internal/consumer/consumer.go Lines 35 to 42 in e8e2114
flow-exporter/internal/consumer/consumer.go Lines 127 to 147 in e8e2114
|
Thanks for the clear explanation @bswinnerton |
It would also be a nice addition (I'm testing it) to add tags like iface_in, iface_out - this would open up more granularity of distinguishing what provider the traffic is coming from (e.g. peering vs transit) I'm looking into if the tags can be used in pmacct. |
Hi,
Is it possible to add src_port, dst_port, protocol labels also to the metrics?
The text was updated successfully, but these errors were encountered: