INFLUXDB Basic Operation

Source: Internet
Author: User
Tags influxdb

INFLUXDB Typical time series database, the should be shipped scene is the information storage after the information collection, mainly is the storage stage between information gathering and information display, the acquisition stage can be a variety of ways, various metric overlay, the display stage mainly concentrates on Grafna above

    1. Show RETENTION policies on "TestDB" //view RETENTION policies of the current database
    2. CREATE RETENTION POLICY "Rp_name" on "db_name" DURATION 30d REPLICATION 1 DEFAULT //Create a new Retention policies

#注释如下:

    1. rp_name: Policy Name
    2. db_name: Specific database name
    3. 30d: Save 30 days, 30
    4. It has a variety of time parameters, such as: h (hours), w (week)
    5. replication 1< Span class= "pun" >: The number of copies, here 1 Yes,
    6. default Set as default policy

Another: Methods of modification and deletion;

    1. ALTER RETENTION POLICY "Rp_name" on db_name"DURATION 3w DEFAULT
    2. DROP RETENTION POLICY "rp_name" on "db_name"

INFLUXDB Basic Operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.