Coder Social home page Coder Social logo

Comments (3)

 avatar commented on July 17, 2024

For more information please refer this screen shot:
https://www.dropbox.com/s/t1wthhk1i22hr43/box_ts_cnt_and_lower_pane.PNG

from anemometer.

gtowey avatar gtowey commented on July 17, 2024

@Maheshpatilblr

The way in which the count of items are grouped can be change in the config files. For example, the default behavior defined by the sample config is as follows:

$conf['graph_defaults'] = array(
    'fact-group'    => 'hour_ts',     // <----- this determines how counts are grouped. hour_ts is the column name.
    'fact-order'    => 'hour_ts',
    'fact-limit' => '',
    'dimension-ts_min_start' => date("Y-m-d H:i:s", strtotime( '-7 day')),
    'dimension-ts_min_end'  => date("Y-m-d H:i:s"),
    'table_fields' => array('hour_ts'),
    // hack ... fix is to make query builder select the group and order fields,
    // then table fields only has to contain the plot_field
    'plot_field' => 'Query_time_sum',
);

Then to find out what the hour_ts column is, look in the $conf['reports'] section starting on line 296:

    // custom fields
    'custom_fields' => array(
        'checksum' => 'HEX(checksum)',
        'date'  => 'DATE(ts_min)',
        'hour'  => 'substring(ts_min,1,13)',
        'hour_ts'   => 'unix_timestamp(substring(ts_min,1,13))',  <--- this is the expression we are grouping on.  In this case it's the hour in which that sample started.

        'snippet' => 'LEFT(dimension.sample,20)',
        'index_ratio' =>'ROUND(SUM(Rows_examined_sum)/SUM(rows_sent_sum),2)',
        'query_time_avg' => 'SUM(Query_time_sum) / SUM(ts_cnt)',
        'rows_sent_avg' => 'ROUND(SUM(Rows_sent_sum)/SUM(ts_cnt),0)',

    ),

You can increase the graph resolution by adding a new custom field such as:

                'minute_ts'     => 'unix_timestamp(substring(ts_min,1,16))',

And changing the fact-group in the report definition.

from anemometer.

gtowey avatar gtowey commented on July 17, 2024

closing old issue. Please let me know if there are still problems here.

from anemometer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.