-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add additional Prometheus Metrics #6511
Conversation
// MetricUserLoginCount counts user logins | ||
MetricUserLoginCount = "user_login_count" | ||
|
||
// MetricHeartbeatConnectionsReceived counts heartbeat connections received by auth |
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.
Not sure on the terminology but perhaps these would be better described as heartbeat messages? Correct me if I am wrong but I think a connection is persistently held and used for heartbeats.
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.
thanks for pointing this out because i did actually hook at the wrong place for heartbeat connections (in grpcserver.go
)-- it should still be counting heartbeat connections but based on where i initally hooked -- i believe it counts messages. i will fix this.
6907b37
to
b138371
Compare
just randomly found this. hope it's ok if I rework this pr a bit to fit #6561 once it's reviewed and merged |
@fspmarshall @xacrimon Can you two review this PR? |
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.
Added a couple minor suggestions. LGTM overall.
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.
LGTM
@russjones can you review? |
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.
Bot.
Purpose
Extend Prometheus monitoring with various metrics
Implementation
Created counters for:
Original issue 6238
*This does not contain tracking network usage on each Teleport component, that will be a separate PR