-
Notifications
You must be signed in to change notification settings - Fork 11
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
MM-56924: Connection invite metrics #675
Conversation
server/metrics/metrics.go
Outdated
m.connectedUsersLimit = prometheus.NewGauge(prometheus.GaugeOpts{ | ||
Namespace: MetricsNamespace, | ||
Subsystem: MetricsSubsystemApp, | ||
Name: "whitelist_limit", // really: connected_users_limit |
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.
metric name unchanged; should we rename to avoid confusion with new whitelist terminology?
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.
I'd be in favor of changing the name; we are not in production so nobody really depends on it, yet.
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.
Feel free to rename! Easy to update dashboards :)
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 @calebroseland
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.
Looks good! Just a few comments for discussion before approving.
webapp/src/index.tsx
Outdated
msteams_invited_users: { | ||
name: 'MS Teams: Invited Users', | ||
id: 'msteams_invited_users', | ||
icon: 'fa-users', // font-awesome-4.7.0 handler | ||
value: siteStats?.pending_invited_users || 0, | ||
}, | ||
msteams_whitelisted_users: { | ||
name: 'MS Teams: Whitelisted Users', | ||
id: 'msteams_whitelisted_users', | ||
icon: 'fa-users', // font-awesome-4.7.0 handler | ||
value: siteStats?.current_whitelist_users || 0, | ||
}, |
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.
I'm wondering if we should consider keeping this as a metric / Grafana dashboard only for now, vs. exposing to the enduser? It's the kind of data that's transiently useful (vs. connected count, which shows volume / adoption).
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.
I'm perfectly happy to remove them, but I do think they provide some value in monitoring or any potential troubleshooting during the initial rollout. 1/5
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.
We could leave them as "extra" stats in the api request, but then just not show them in the site statistics page.
server/metrics/metrics.go
Outdated
m.connectedUsersLimit = prometheus.NewGauge(prometheus.GaugeOpts{ | ||
Namespace: MetricsNamespace, | ||
Subsystem: MetricsSubsystemApp, | ||
Name: "whitelist_limit", // really: connected_users_limit |
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.
Feel free to rename! Easy to update dashboards :)
server/metrics/metrics.go
Outdated
@@ -354,6 +353,7 @@ func NewMetrics(info InstanceInfo) Metrics { | |||
}, []string{"action"}) | |||
m.registry.MustRegister(m.syncMsgFileDelayTime) | |||
|
|||
// connected, invited, whitelisted |
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.
Does this mean connected + invited + whitelisted
? I'd like to make sure we can still measure actual connections separately.
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.
No, that's just a section header (ending on :403
). Each metric is still separate.
Summary
Ticket Link
https://mattermost.atlassian.net/browse/MM-56924