Add metrics endpoint with http metrics using Prometheus client lib

This commit is contained in:
Markus Muellner
2022-03-15 20:52:47 +01:00
committed by Benj Fassbind
parent 8046fb1eb9
commit 6539e1b856
12 changed files with 561 additions and 40 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ func (s *GrabDownloaderSuite) TestDownloadConnectError(c *C) {
func (s *GrabDownloaderSuite) TestDownloadFileError(c *C) {
skipIfRoot(c)
c.Assert(s.d.Download(s.ctx, s.url+"/test", "/"),
ErrorMatches, ".*permission denied")
ErrorMatches, ".*(permission denied|read-only file system)")
}
func (s *GrabDownloaderSuite) TestGetLength(c *C) {