Owntracks with Prometheus

Hi,

I recently configured Owntracks to send location data to my MQTT server and surprisingly the entites automatically showed up in Home Assistant Owntrack integrations. However, I don’t see the location metrics from Prometheus integration. Here’s a list of metrics I found in Prometheus with the Owntracks entities:

  • homeassistant_device_tracker_state
  • homeassistant_entity_available
  • homeassistant_last_updated_time_seconds
  • homeassistant_state_change_created
  • homeassistant_state_change_total

I’m wondering if I could get the location data, speed data and battery data from Owntracks in Prometheus. These data are shown in “Attributes” of the entities except altitude is missing. So I believe they should be able to be exposed to Prometheus.

Any help is appreciated. Thanks!