-
Notifications
You must be signed in to change notification settings - Fork 160
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
BS: Metrics about incoming beacons #2695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @sustrik)
a discussion (no related file):
Add commit description.
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 60 at r1 (raw file):
) // receiver holds the metrics about incoming beacons.
s/receiver/Receiver
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 65 at r1 (raw file):
} // Initeceiver initializes the receiver metrics and returns a handle.
s/Initeceiver/InitReceiver
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 78 at r1 (raw file):
totalBeacons: *prom.NewCounterVec( ns, "", "beacons_total", "Number of beacons received", []string{"in_ifid", "result"}),
Do you think it would be useful to have the startIA
in there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, 4 unresolved discussions (waiting on @oncilla and @sustrik)
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 60 at r1 (raw file):
Previously, Oncilla wrote…
s/receiver/Receiver
Done.
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 65 at r1 (raw file):
Previously, Oncilla wrote…
s/Initeceiver/InitReceiver
Done.
go/beacon_srv/internal/beaconing/metrics/metrics.go, line 78 at r1 (raw file):
Previously, Oncilla wrote…
Do you think it would be useful to have the
startIA
in there?
Generally, I am not in favour of having startIA in metrics, because of the DoS attacks. Send enough beacons for random ASes and you'll kill prometheus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sustrik)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sustrik)
- a single metric labeled with IFID and by error type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @oncilla)
a discussion (no related file):
Previously, Oncilla wrote…
Add commit description.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
This change is