Package org.rrd4j.core

Examples of org.rrd4j.core.RrdDef.addArchive()


      } else {
        // for other things, we mainly provide a high level of detail for the last hour
        rrdDef.setStep(1);
          rrdDef.setStartTime(System.currentTimeMillis()/1000-1);
          rrdDef.addDatasource(DATASOURCE_STATE, DsType.GAUGE, 3600, Double.NaN, Double.NaN);
          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
View Full Code Here


        // for other things, we mainly provide a high level of detail for the last hour
        rrdDef.setStep(1);
          rrdDef.setStartTime(System.currentTimeMillis()/1000-1);
          rrdDef.addDatasource(DATASOURCE_STATE, DsType.GAUGE, 3600, Double.NaN, Double.NaN);
          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
      }
View Full Code Here

        rrdDef.setStep(1);
          rrdDef.setStartTime(System.currentTimeMillis()/1000-1);
          rrdDef.addDatasource(DATASOURCE_STATE, DsType.GAUGE, 3600, Double.NaN, Double.NaN);
          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
      }
    return rrdDef;
View Full Code Here

          rrdDef.setStartTime(System.currentTimeMillis()/1000-1);
          rrdDef.addDatasource(DATASOURCE_STATE, DsType.GAUGE, 3600, Double.NaN, Double.NaN);
          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
      }
    return rrdDef;
  }
View Full Code Here

          rrdDef.addDatasource(DATASOURCE_STATE, DsType.GAUGE, 3600, Double.NaN, Double.NaN);
          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
      }
    return rrdDef;
  }
View Full Code Here

          rrdDef.addArchive(function, .999, 1, 3600); // 1 hour (granularity 1 sec)
          rrdDef.addArchive(function, .999, 10, 1440); // 4 hours (granularity 10 sec)
          rrdDef.addArchive(function, .999, 60, 1440); // one day (granularity 1 min)
          rrdDef.addArchive(function, .999, 900, 2880); // one month (granularity 15 min)
          rrdDef.addArchive(function, .999, 21600, 1460); // one year (granularity 6 hours)
          rrdDef.addArchive(function, .999, 86400, 3650); // ten years (granularity 1 day)
      }
    return rrdDef;
  }

  static public ConsolFun getConsolidationFunction(Item item) {
View Full Code Here

                            STEP_SIZE, 0, Long.MAX_VALUE );

                    // DEFINE ARCHIVES

                    // Last 35 minutes
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.5, 1,
                            STEPS_PER_ARCHIVE );

                    // Last 6 hours
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 10,
                            STEPS_PER_ARCHIVE );
View Full Code Here

                    // Last 35 minutes
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.5, 1,
                            STEPS_PER_ARCHIVE );

                    // Last 6 hours
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 10,
                            STEPS_PER_ARCHIVE );

                    // Last day
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 50,
                            STEPS_PER_ARCHIVE );
View Full Code Here

                    // Last 6 hours
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 10,
                            STEPS_PER_ARCHIVE );

                    // Last day
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 50,
                            STEPS_PER_ARCHIVE );

                    // Last week
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 300,
                            STEPS_PER_ARCHIVE );
View Full Code Here

                    // Last day
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 50,
                            STEPS_PER_ARCHIVE );

                    // Last week
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 300,
                            STEPS_PER_ARCHIVE );

                    // Last month
                    rrdDef.addArchive( ConsolFun.AVERAGE, 0.2, 1300,
                            STEPS_PER_ARCHIVE );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.