Prerequisites

NOTE: opTrend is currently in alpha.

Upgrade Steps

Post Installation Steps

  1. Collections in opTrend are no longer capped, each entry is set to expire after 21 days.  This value is configurable, adjust opCommon: 'optrend_seds_expire_after_seconds'

  2. Set expire_at value on existing documents, be sure to change the date to a date that makes sense for you

    db.getCollection('seds').update(
        { expire_at: {$exists: false}}, 
        { $set: { expire_at: Date("2017-06-20T01:01:01")}},
        { multi: true }
     );
     db.getCollection('seds_ev').update(
        { expire_at: {$exists: false}}, 
        { $set: { expire_at: Date("2017-06-20T01:01:01")}},
        { multi: true }
     );
  3. opTrend documents for the current week need to be replaced with the newer format, to do this force an update which will replace them:

    /usr/local/omk/bin/optrend.pl act=update force=1