Skip to content
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

Merged
merged 1 commit into from
May 16, 2019
Merged

BS: Metrics about incoming beacons #2695

merged 1 commit into from
May 16, 2019

Conversation

sustrik
Copy link
Contributor

@sustrik sustrik commented May 16, 2019

This change is Reviewable

@oncilla oncilla added the BS label May 16, 2019
@oncilla oncilla self-requested a review May 16, 2019 13:14
@oncilla oncilla added this to the Q2S2 milestone May 16, 2019
Copy link
Contributor

@oncilla oncilla left a 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?

Copy link
Contributor Author

@sustrik sustrik left a 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.

Copy link
Contributor

@oncilla oncilla left a 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)

Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sustrik)

- a single metric labeled with IFID and by error type
Copy link
Contributor Author

@sustrik sustrik left a 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.


Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@sustrik sustrik merged commit 34f56f9 into scionproto:master May 16, 2019
@sustrik sustrik deleted the metrics-bs branch November 7, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants