<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_custom_metrics_for_course_key(course_key):
 """ Set monitoring custom metrics related to a course key. This is not cached, and only support reporting to New Relic Insights. """

    if not newrelic:
        return
    newrelic.agent.add_custom_parameter('course_id', six.text_type(course_key))
    newrelic.agent.add_custom_parameter('org', six.text_type(course_key.org))