Grafana retention influxDB keep only last 14 days

Hello,

My Grafana keeps only the last 14 days for all my graphs.

I checked in InfluxDB, I don’t have any retention policy.

Do you have an idea please ?

Regards,

You always have a retention policy, atleast the default.

SHOW RETENTION POLICIES ON “database-name”

Hi mattes,

There is two retention policy on my InfluDB.

SHOW RETENTION POLICIES ON “_internal”
name duration shardGroupDuration replicaN default


monitor 168h0m0s 24h0m0s 1 true

SHOW RETENTION POLICIES ON “influx_db”
name duration shardGroupDuration replicaN default


autogen 8640h0m0s 168h0m0s 1 true

I tried to create the retention on influx_db with 8640h (360jrs) but it doesn’t work.

In /etc/influxdb/influxdb.conf :

[retention]

Determines whether retention policy enforcement enabled.

enabled = true

The interval of time when retention policy enforcement checks run.

check-interval = “30m”

I missed something ?

Regards,

Its simple, but maybe the pretty good docs will help :slight_smile:

Alter Retention Policy

Or Influx Forum

Change default policy

Regards :slight_smile:

Edit: if you want to do it via UI - try this
InfluxDB Studio