def delete(self,
registry: CollectorRegistry) -> aiohttp.web.Response:
'''
``delete`` deletes metrics from the push gateway. All metrics with
the grouping key specified in the URL are deleted.
'''
async with aiohttp.ClientSession(loop=self.loop) as session:
payload = self.formatter.marshall(registry)
resp = await session.delete(
self.path, data=payload, headers=self.headers)
await resp.release()
return resp
评论列表
文章目录