Skip to content

Commit

Permalink
[Model Monitoring] Hard coded table path bug (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelliv committed Feb 28, 2021
1 parent 5b6f680 commit fc2d91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlrun/api/api/endpoints/grafana_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def grafana_endpoint_features(
body: Dict[str, Any], query_parameters: Dict[str, str], access_key: str
):
endpoint_id = query_parameters.get("endpoint_id")
project = query_parameters.get("project")

start = body.get("rangeRaw", {}).get("start", "now-1h")
end = body.get("rangeRaw", {}).get("end", "now")
Expand All @@ -150,7 +151,7 @@ def grafana_endpoint_features(

results = frames_client.read(
"tsdb",
"test/endpoint-features",
f"{project}/endpoint-features",
filter=f"endpoint_id=='{endpoint_id}'",
start=start,
end=end,
Expand Down

0 comments on commit fc2d91d

Please sign in to comment.