def METHOD_NAME(aggregator, instance):
    c = GnatsdCheck(CHECK_NAME, {}, [instance])
    c.check(instance)
    aggregator.assert_service_check('gnatsd.can_connect', status=GnatsdCheck.OK, count=1)
    aggregator.assert_metric('gnatsd.varz.connections', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.varz.subscriptions', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.varz.slow_consumers', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.varz.remotes', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.varz.routes', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.varz.in_msgs', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.varz.out_msgs', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.varz.in_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.varz.out_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.varz.mem', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.num_connections', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.total', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.pending_bytes', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.in_msgs', metric_type=aggregator.COUNT)
    # We sent 2 messages to this queue in the ci setup
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.out_msgs', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.subscriptions', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.in_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.connz.connections.foo-sub.out_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.pending_bytes', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.in_msgs', metric_type=aggregator.COUNT)
    # We sent 1 message to this queue in the ci setup
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.out_msgs', metric_type=aggregator.COUNT, value=1)
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.subscriptions', metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.in_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.connz.connections.unnamed.out_bytes', metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.routez.num_routes', metric_type=aggregator.GAUGE)
    route_ip = get_container_ip('docker_nats_serverA_1').replace('.', '_')
    aggregator.assert_metric('gnatsd.routez.routes.{}.in_msgs'.format(route_ip), metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.routez.routes.{}.out_msgs'.format(route_ip), metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.routez.routes.{}.subscriptions'.format(route_ip), metric_type=aggregator.GAUGE)
    aggregator.assert_metric('gnatsd.routez.routes.{}.in_bytes'.format(route_ip), metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.routez.routes.{}.out_bytes'.format(route_ip), metric_type=aggregator.COUNT)
    aggregator.assert_metric('gnatsd.routez.routes.{}.pending_size'.format(route_ip), metric_type=aggregator.GAUGE)
    aggregator.assert_all_metrics_covered()