NewRelic Custom Metrics
oauth_*
See documentation for the oauth_* custom metrics documented on the Custom Metrics in New Relic page.
Additionally, you can see some of these metrics in use on the Authentication Dashboard in NewRelic Insights.
tripId (built-in metric)
Use tripId, which is a NewRelic provided field to track transaction calls made through various NewRelic apps.
SELECT appName, name, tripId from Transaction WHERE tripId = '7f695092a81bf3ad'
request_auth_type
Actual values seen in Production:
- unauthenticated
- jwt
- bearer
- basic
- no-user
- negotiate
- ntlm
- ssi
- token
- whm
- session-or-unknown
SELECT uniques(request_auth_type) from Transaction SINCE 5 hours ago
request_user_agent
NewRelic has its own "request.headers.userAgent" field. At this time, it seems that some transactions have a value for "request_user_agent", and others for "request.headers.userAgent", but not both. This is true even for Python user agents.
SELECT request_user_agent, `request.headers.userAgent` from Transaction WHERE request_user_agent != `request.headers.userAgent` AND (request_user_agent is NOT NULL OR `request.headers.userAgent` IS NOT NULL)
request_client_name
The request_client_name is taken from the user agent string for calls made using edx-rest-api-client v1.8.2+.
SELECT request_client_name FROM Transaction WHERE request_client_name IS NOT NULL AND request_client_name !='unknown_client_name'
request_referer
Seems to be working as expected. Only appears on certain transactions.
SELECT request_referer from Transaction WHERE request_referer is not null
Update IDAs and NewRelic Applications
NewRelic Applications (RequestMetricsMiddleware)
- prod-edx-analytics-api
- prod-edx-insights
- prod-edx-journals
- prod-edx-credentials
- prod-edx-discovery
- prod-edx-ecommerce
- prod-edx-edxapp-cms
- prod-edx-edxapp-lms
- prod-edx-notes
NewRelic Applications (Workers)
- prod-edx-ecomworker * not yet updated
- prod-edx-edxapp-workers (updated with edx-platform)
NewRelic Applications (Skipped)
- prod-edx-forum
- prod-edx-mktg
Additional edx-rest-api-client Upgrades Possible
We need to determine when and if to update each of these. It is moot if the user agent string isn't being updated correctly.
- edx/bi-internal-reporting * not yet updated
- edx/ecommerce-scripts * not yet updated
- edx/ecommerce-worker * not yet updated
- edx/tubular * not yet updated
IDA Updates Completed
For working with all IDAs, see - ARCH-193Getting issue details... STATUS for a list of IDAs and example PRs.