I had a similar problem, namely I needed to remove the _total and _seconds suffixes. I did it with the help: EndpointWebExtension for PrometheusScrapeEndpoint.