code: public void addMetricsGraph(String title, String value) {
          if (metrics != null) {
              Metrics.Graph graph = metrics.createGraph(title);
              graph.addPlotter(new Metrics.Plotter(value) {
                  @Override
                  public int getValue() {
                      return 1;
                  }
              });
          }
      }
docs: Add a graph to Metrics
  
  @param title The title of the Graph
  @param value The value of the entry