# \#AMAMQTT | I'm building a custom dashboard for devices that sends data over MQTT Sparkplug B. What is the best way to take that data stream from MQTT and maintain the current state

**URL:** <https://community.hivemq.com/t/amamqtt-im-building-a-custom-dashboard-for-devices-that-sends-data-over-mqtt-sparkplug-b-what-is-the-best-way-to-take-that-data-stream-from-mqtt-and-maintain-the-current-state/797>\
**Category:** Uncategorized\
**Created:** [November 5, 2021, 9:53am UTC](https://community.hivemq.com/t/amamqtt-im-building-a-custom-dashboard-for-devices-that-sends-data-over-mqtt-sparkplug-b-what-is-the-best-way-to-take-that-data-stream-from-mqtt-and-maintain-the-current-state/797 "2021-11-05T09:53:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayashree.hegde](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jayashree.hegde](https://community.hivemq.com/u/Jayashree.hegde)\
**Post date:** [November 5, 2021, 9:53am UTC](https://community.hivemq.com/t/amamqtt-im-building-a-custom-dashboard-for-devices-that-sends-data-over-mqtt-sparkplug-b-what-is-the-best-way-to-take-that-data-stream-from-mqtt-and-maintain-the-current-state/797/1 "2021-11-05T09:53:14Z")

</div>

This question was asked during the webinar titled “Ask Me Anything About MQTT: Take 2” held on October 26. 2021 by Kyle.

Answer: Yes. You can. You can use our [open-source Sparkplug extension](https://www.hivemq.com/extension/sparkplug-influxdb-extension/).

The HiveMQ Sparkplug Extension helps gather MQTT Sparkplug metrics from HiveMQ and persist them into an InfluxDB database. This database can be used as the data source for a monitoring dashboard to monitor directly the data from the devices and gateways of a Sparkplug Infrastructure.
