def METHOD_NAME(aggregator, instance):
    check = SonarrCheck('sonarr', {}, [instance])
    series = [
        {
            "title": "A title",
            "seasons": [
                {
                    "seasonNumber": 1,
                    "monitored": False,
                    "statistics": {
                        "episodeFileCount": 0,
                        "episodeCount": 0,
                        "totalEpisodeCount": 10,
                        "sizeOnDisk": 0,
                        "percentOfEpisodes": 0.0,
                    },
                },
                {
                    "seasonNumber": 2,
                    "monitored": True,
                    "statistics": {
                        "episodeFileCount": 3,
                        "episodeCount": 10,
                        "totalEpisodeCount": 20,
                        "sizeOnDisk": 2069274913,
                        "percentOfEpisodes": 30.0,
                    },
                },
            ],
            "monitored": True,
            "statistics": {
                "seasonCount": 2,
                "episodeFileCount": 3,
                "episodeCount": 10,
                "totalEpisodeCount": 30,
                "sizeOnDisk": 2069274913,
                "percentOfEpisodes": 30.0,
            },
            "id": i,
        }
        for i in range(5)
    ]
    metrics = check._init_metrics()
    check._process_series(series, metrics)
    assert metrics["series.total"] == 5
    assert metrics["series.monitored"] == 5
    assert metrics["series.unmonitored"] == 0
    assert metrics["series.downloaded"] == 0
    assert metrics["seasons.total"] == 10
    assert metrics["episodes.total"] == 150
    assert metrics["episodes.downloaded"] == 15
    assert metrics["series.file_size"] == 10346374565
    assert metrics["seasons.monitored"] == 5
    assert metrics["seasons.unmonitored"] == 5
    assert metrics["seasons.downloaded"] == 0