Update Monitoring for Squad or Theme Changes#

Understanding code owner custom attributes#

If you first need some background on the code_owner_squad and code_owner_theme custom attributes, see Add Code_Owner Custom Attributes to an IDA.

Expand and contract name changes#

NRQL (New Relic Query Language) statements that use the code_owner_squad or code_owner_theme (or code_owner) custom attributes may be found in alert conditions or dashboards.

To change a squad or theme name, you should expand the NRQL before the change, and contract the NRQL after the change.

Note

For edx.org, it is useful to wait a month before implementing the contract phase of the monitoring update.

Example expand phase NRQL:

code_owner_squad IN ('old-squad-name', 'new-squad-name')
code_owner_theme IN ('old-theme-name', 'new-theme-name')

Example contract phase NRQL:

code_owner_squad = 'new-squad-name'
code_owner_theme = 'new-theme-name'

To find the relevant NRQL to update, see Searching New Relic NRQL.

Searching New Relic NRQL#

See Searching New Relic for general information about the new_relic_search.py script.

This script can be especially useful for helping with the expand/contract phase when changing squad or theme names. For example, you could use the following:

new_relic_search.py --regex old-squad-name
new_relic_search.py --regex new-squad-name