feat: support for prometheus (#1784)

This commit is contained in:
OutOfEastGate
2023-04-25 16:06:09 +08:00
committed by GitHub
parent fe53e90d37
commit 1003639e5b
10 changed files with 342 additions and 3 deletions

View File

@ -33,3 +33,13 @@ export function getVersionInfo() {
},
}).then(res => res.json());
}
export function getPrometheusInfo() {
return fetch(`${Setting.ServerUrl}/api/get-prometheus-info `, {
method: "GET",
credentials: "include",
headers: {
"Accept-Language": Setting.getAcceptLanguage(),
},
}).then(res => res.json());
}