Add Grafana widget

This commit is contained in:
Mbarmem 2023-02-13 15:20:22 +03:00 committed by shamoon
parent 8a6343dee7
commit cd7d7ba729
4 changed files with 57 additions and 0 deletions

14
src/widgets/grafana/widget.js Executable file
View file

@ -0,0 +1,14 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = {
api: "{url}/api/{endpoint}",
proxyHandler: genericProxyHandler,
mappings: {
alerts: {
endpoint: "alerts",
},
},
};
export default widget;