def create_custom_metrics_conf(mds_gig_endpoint_region):
    """
    Create the metrics extension config
    :param mds_gig_endpoint_region: mds gig endpoint region for the VM
    """
    # Note : mds gig endpoint url is only for 3rd party customers. 1st party endpoint is different

    conf_json = '''{
        "version": 17,
        "maxMetricAgeInSeconds": 0,
        "endpointsForClientForking": [],
        "homeStampGslbHostname": "''' + mds_gig_endpoint_region + '''.monitoring.azure.com",
        "endpointsForClientPublication": [
            "https://''' + mds_gig_endpoint_region + '''.monitoring.azure.com/api/v1/ingestion/ingest"
        ]
    } '''
    return conf_json