mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
55c62b234e
* add new poller * add a missing ; * formatting cleanup * graph stuff and metrics move * add rrd name * clean up metrics/rrd def * more metric/rrd def cleanup * cleanup * add basic opensearch graphs * add opensearch to apps.inc.php * begin work on opensearch app page * formatting cleanup * add translog graphs * add a missing graph * fix pending tasks * add the ability to fetch the saved cluster name * add fetching the cluster name * correct the opensearch comment * add combined shard stats * add indexing graphs * correct graph name * correct some units as being per second * add more graphs * add more items for graph sets * cleanup of units and naming... also more graphs * more graph stuff * change the RRD def again and define a few more graphs * finish basic graph sets * more graph stuff * another rrd def change * add more graphs * add some more graph sets * correct unit for c_task_max_in_time * more graph stuff * more graph stuff * correct the unit * add missing tw_time and another rrd def change * another unit change * add trc graphs * more graph stuff * add tseg graphs * add all shards graph to both cluster items * more graph stuff * update opensearch app page * add Opensearch\Elasticsearch app * add opensearch tests * run php-cs-fixer on two files * add alert examples for checking cluster status * remove an item that was accidentally added as a metric in the test but is not * derp! thanks jellyfrog * make it come up as Elisticsearch\Opensearch in the webui * no longer use components, but app_data, for cluster name change * update the web side for opensearch for using app_data * style fix * update opensearch for new app data stuff * update to the new Application model * update poller and device app page for ES/OS * style cleanup * update graphs * test fix * more test cleanup * Update alert_rules.json * begin work on breaking out the RRDs * update all non-multi rrd graphs for opensearch * update time_all * add a unass shards graph * correct rrd name * should all be good now * add missing tm stats * Un Assigned -> Unassigned * style cleanup * another style fix * remove cluster_name from saved metrics as it is not a metric Co-authored-by: Tony Murray <murraytony@gmail.com> Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
91 lines
2.4 KiB
PHP
91 lines
2.4 KiB
PHP
<?php
|
|
|
|
$name = 'opensearch';
|
|
$unit_text = 'Millisecs/Sec';
|
|
$colours = 'psychedelic';
|
|
$dostack = 0;
|
|
$printtotal = 1;
|
|
$addarea = 0;
|
|
$transparency = 15;
|
|
|
|
$ti_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'ti']);
|
|
$ts_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'ts']);
|
|
$tr_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'tr']);
|
|
$tf_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'tf']);
|
|
$tg_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'tg']);
|
|
$tm_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'tm']);
|
|
$tw_rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'tw']);
|
|
|
|
$rrd_list[] = [
|
|
'filename' => $ti_rrd_filename,
|
|
'descr' => 'Index',
|
|
'ds' => 'ti_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $ti_rrd_filename,
|
|
'descr' => 'Delete',
|
|
'ds' => 'ti_del_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $ts_rrd_filename,
|
|
'descr' => 'Query',
|
|
'ds' => 'ts_q_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $ts_rrd_filename,
|
|
'descr' => 'Fetch',
|
|
'ds' => 'ts_f_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $ts_rrd_filename,
|
|
'descr' => 'Scroll',
|
|
'ds' => 'ts_sc_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $ts_rrd_filename,
|
|
'descr' => 'Suggest',
|
|
'ds' => 'ts_su_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tr_rrd_filename,
|
|
'descr' => 'Refresh',
|
|
'ds' => 'tr_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tr_rrd_filename,
|
|
'descr' => 'Ext. Refresh',
|
|
'ds' => 'tr_ext_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tf_rrd_filename,
|
|
'descr' => 'Flush',
|
|
'ds' => 'tf_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tg_rrd_filename,
|
|
'descr' => 'Get',
|
|
'ds' => 'tg_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tg_rrd_filename,
|
|
'descr' => 'Get Exists',
|
|
'ds' => 'tg_exists_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tg_rrd_filename,
|
|
'descr' => 'Get Missing',
|
|
'ds' => 'tg_missing_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tm_rrd_filename,
|
|
'descr' => 'Merges',
|
|
'ds' => 'tm_time',
|
|
];
|
|
$rrd_list[] = [
|
|
'filename' => $tw_rrd_filename,
|
|
'descr' => 'Warmer',
|
|
'ds' => 'tw_time',
|
|
];
|
|
|
|
require 'includes/html/graphs/generic_multi_line.inc.php';
|