For databaseRid, have you checked the interval you have put like starttime and endtime in your request ?
For your question, regarding how to be able to obtain some metrics at the DB level, you need to have Permission to read metrics (typically requires a role such as Contributor
, Owner
)