grafana only works 30sec after start

This commit is contained in:
piair
2023-08-24 14:21:51 +02:00
parent f6b43a9ce4
commit 0fa8149953
4 changed files with 19 additions and 15 deletions

View File

@ -452,7 +452,13 @@ def maxi(dict):
m = int(i)
return(m+1)
def setup_grafana():
if get("http://localhost:3000/api/datasources").text == "[]" :
subprocess.Popen(["bash",'/app/MsRewards-Reborn/grafana-config/request.sh'])
if __name__ == '__main__':
print("this is launched")
setup_grafana()
update_jobs()
edit_version()
app.run(host='0.0.0.0', port=1234, debug=True)