Reputation: 4088
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 ?
Upvotes: 0
Views: 540
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.
$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