Telemetry data on Workflows and activities

Is there a way to get the below information via a query or something?

  • Average number of times activity of the type ABC has retried?

  • Average amount of time activity of the type ABC is taking for completion?

  • Number of times workflow PQR has failed in last 24 hours?