Skip to content

Commit

Permalink
Merge pull request #745 from roboflow/fix/metrics_endpoint
Browse files Browse the repository at this point in the history
Remove metrics endpoint
  • Loading branch information
PawelPeczek-Roboflow authored Oct 11, 2024
2 parents 802e668 + 2364810 commit f6e130c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions inference/core/interfaces/http/http_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,21 +583,6 @@ async def device_stats():
)
return JSONResponse(status_code=200, content=container_stats)

else:

@app.get("/device/stats")
async def device_stats():
return JSONResponse(
status_code=404,
content={
"error": "Device statistics endpoint is not enabled.",
"hint": "Mount the Docker socket and point its location when running the docker "
"container to collect device stats "
"(i.e. `docker run ... -v /var/run/docker.sock:/var/run/docker.sock "
"-e DOCKER_SOCKET_PATH=/var/run/docker.sock ...`).",
},
)

if DEDICATED_DEPLOYMENT_WORKSPACE_URL:
cached_api_keys = dict()
cached_projects = dict()
Expand Down

0 comments on commit f6e130c

Please sign in to comment.