Adding Mimir Implemented Alertmanager Datasource

Hey team, I cant understand how we can add mimir implemented alertmanager data source to Grafana, currently we have mimir ruler with prometheus rules, what actions needs to be taken to convert to mimir implemented alertmanager? from mimir alertmanager config I dont see any config option to specify either prometheus or mimir implementation, how it works?