cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Data persistence InfluxDB

Data persistence InfluxDB

Hi, I'm testing writting and reading data from Node-RED to an InfluxDB database located on the same Core. I would like to know if the InfluxDB app, has data persistence or if there is a way to configure it, because every time the Core shuts down, the data is erased. The Core version is cx_m4p_a, and the InfluxDB and Node-RED are V1.18. Thank you very much.

1 REPLY 1

nickH
Community Moderator
Community Moderator

Hi,

by default data in the InfluxDB is always persistant and gets stored for an infinite time. Data will only get deleted after a certain time, if you define a retention policy for this data. But I don't think you did that. 

I think when you look into the database after you reboot your ctrlX CORE, you are just looking at the wrong time with your database query.

When working with InfluxDB, its very important to know, that InfluxDB is a time series database. time series database is built specifically for handling metrics and events or measurements that are time-stamped. So it's very important that the time is set correct on your ctrlX CORE. In addition: If you do a database query to see the "old" data, please look at the time settings of the query you sent to InfluxDB (see the screenshot). This time range of your query has to match with the timestamp of the data you stored in the InfluxDB.

query the data of the last two daysquery the data of the last two days

 

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist