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

ref(metrics): Send network outage metric on healthcheck endpoint hit #856

Merged
merged 4 commits into from
Nov 30, 2020

Conversation

beezz
Copy link
Contributor

@beezz beezz commented Nov 26, 2020

No description provided.

@beezz beezz requested a review from a team November 26, 2020 10:21
@beezz beezz force-pushed the ref/send-network-outage-metrics-from-healthcheck branch from 0be2349 to 5582459 Compare November 26, 2020 10:34
@beezz beezz force-pushed the ref/send-network-outage-metrics-from-healthcheck branch from 5582459 to 0e415c3 Compare November 26, 2020 12:25
relay-server/src/actors/upstream.rs Show resolved Hide resolved
relay-server/src/actors/upstream.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
relay-server/src/actors/healthcheck.rs Outdated Show resolved Hide resolved
relay-server/src/actors/upstream.rs Outdated Show resolved Hide resolved
relay-server/src/metrics.rs Outdated Show resolved Hide resolved
relay-server/src/metrics.rs Outdated Show resolved Hide resolved
@beezz beezz force-pushed the ref/send-network-outage-metrics-from-healthcheck branch from 0e415c3 to a057366 Compare November 30, 2020 08:58
@beezz beezz requested a review from jan-auer November 30, 2020 09:03
Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

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

I would do it the other way around: push network outage state from the upstream actor into the healthcheck actor.

The original idea with the healthcheck actor was that one would not overload any other actor's mailboxes with healthcheck-related messages.

I wonder whether emitting the gauge so often is even necessary. Perhaps we can set it only if the state changes, and then only frmo within the upstream actor?

@beezz beezz force-pushed the ref/send-network-outage-metrics-from-healthcheck branch from dc8cb40 to c790cd6 Compare November 30, 2020 13:05
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Thanks!

relay-server/src/actors/healthcheck.rs Outdated Show resolved Hide resolved
@beezz beezz merged commit edd07ec into master Nov 30, 2020
@beezz beezz deleted the ref/send-network-outage-metrics-from-healthcheck branch November 30, 2020 14:38
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.

None yet

4 participants