IIIIIIIIIIIIIIIIIIIIII
IIIIIIIIIIIIIIIIIIIIII

Reputation: 4088

Grafana: Local snapshot set custom expire time

You can see in the following screenshot that I can choose from 4 different expire times. But I want to define my own ones. For example two weeks or one month. Is it possible to add a costum expire time ? If yes how ?

enter image description here

Upvotes: 0

Views: 540

Answers (1)

praj
praj

Reputation: 914

It is definitely possible. You should be able to achieve that by forking grafana and then editing this file

/public/app/features/dashboard/shareSnapshotCtrl.js

and then building from source.

see this - https://github.com/grafana/grafana/blob/master/public/app/features/dashboard/shareSnapshotCtrl.js#L19

 $scope.expireOptions = [
  {text: '1 Hour', value: 60*60},
  {text: '1 Day',  value: 60*60*24},
  {text: '7 Days', value: 60*60*24*7},
  {text: 'Never',  value: 0},
];

Upvotes: 1

Related Questions