SnabbDDoS / snabb

Snabb: Simple and fast packet networking
Apache License 2.0
4 stars 0 forks source link

Per mitigation counters #3

Open plajjan opened 8 years ago

plajjan commented 8 years ago

Implement relevant counters per mitigation!

We can use same measurement and value name as today, just add a new tag that is set to the mitigation ID.

plajjan commented 8 years ago

So do we use the IP as ID for the mitigation? I guess that's a tad weird in a way since it wouldn't be possible to distinguish multiple mitigations for the same IP.

Should we come up with an artificial numeric id?

plajjan commented 8 years ago

Maybe one thing doesn't need to exclude another, we can set a tag for the destination IP and another one for an artificial IP that is unique per mitigation.

plajjan commented 8 years ago

Although the counters Snabb doesn't work that way - it needs to be a unique path so if it's keyed on the artificial integer id we need to lookup the destination IP before we can send it to influxdb.