Page MenuHomePhabricator

Device Analytics: change metrics route to /metrics
Closed, ResolvedPublic

Description

tl;dr: switch the Device Analytics metrics endpoint from /admin/metrics to /metrics

Details:

Our metrics and dashboarding infrastructure needs a consistent endpoint from which to pull metrics from each service. Per Slack discussion, this should be /metrics.

Also per that discussion, these metrics do not need to be publicly accessible. That means it is okay that all the various AQS 2.0 services expose metrics information (only) under /metrics, rather than distinct endpoints like (for example) /metrics/device-analytics, /metrics/page-analytics, etc. Our metrics infrastructure will make calls to the /metrics endpoint for each service using a distinct internal service name and port number, so disambiguation is not an issue.

Device Analytics currently exposes metrics under the endpoint:
/admin/metrics
Switch this to:
/metrics

Event Timeline

Change 922533 had a related patch set uploaded (by BPirkle; author: BPirkle):

[generated-data-platform/aqs/device-analytics@main] Change metrics path to /metrics, per convention

https://gerrit.wikimedia.org/r/922533

BPirkle triaged this task as Medium priority.

Change 922533 merged by jenkins-bot:

[generated-data-platform/aqs/device-analytics@main] Change metrics path to /metrics, per convention

https://gerrit.wikimedia.org/r/922533

Metrics verified .
Results :-

Metrics available on new updated path /metrics , and getting reasonable data