Monitron Sensor

0

Hello,

I am transfering monitron sensor data from S3 bucket into a self-made app. (visualizing vibration and temperature in a different way than the monitron-app is doing)

How can store the monitron data longer - right now I can only fetch the last 24 hours. Can I extend it to 7 days ?

asked a year ago231 views
1 Answer
0

Yes, you can store the Monitron data for longer than the default 24-hour retention period by enabling data archiving in Amazon S3. To do this, you need to create an S3 bucket and configure it to receive the Monitron data. Then, you can use the Amazon S3 Lifecycle feature to automatically move the data from the original bucket to a second bucket with longer-term storage after a specified time period, such as 7 days.

To set up data archiving for Monitron data, follow these general steps:

Create an S3 bucket to receive the Monitron data. Configure Monitron to store the data in the S3 bucket. Enable S3 Lifecycle on the bucket to move data to a second bucket with longer-term storage after a specified time period. Use the second bucket to store the data for longer periods of time. Here are more detailed steps:

Create an S3 bucket to receive the Monitron data:

Open the S3 console and click "Create bucket". Name the bucket and choose a region for it. Leave all other settings as default and click "Create bucket". Configure Monitron to store the data in the S3 bucket:

In the Monitron console, go to "Settings". Under "Data Export", choose "S3 bucket". Enter the name of the S3 bucket you just created. Leave all other settings as default and click "Save". Enable S3 Lifecycle on the bucket to move data to a second bucket with longer-term storage after a specified time period:

In the S3 console, click on the S3 bucket you created for Monitron data. Click the "Management" tab and then "Lifecycle". Click "Add lifecycle rule". Choose "Current version of an object" and click "Next". Set the "Expiration" period to 7 days (or the desired period for longer-term storage). Choose "Transition current version to S3 Standard-Infrequent Access" and set the number of days for this transition (for example, 7 days). Choose "Create new S3 bucket" for the transition destination and name the new bucket. Leave all other settings as default and click "Review". Review the settings and click "Create rule". Use the second bucket to store the data for longer periods of time:

After the specified time period (7 days in this example), the data will be automatically moved to the second bucket. You can use this second bucket to store the data for longer periods of time. You can also apply additional S3 Lifecycle rules to the second bucket to move the data to even cheaper storage options after longer periods of time, such as Glacier or Glacier Deep Archive. With these steps, you can store Monitron data for longer periods of time and use it in your app.

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions