mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #3718: Fix paths for monitoring graphs
This commit is contained in:
parent
fc5e264e99
commit
692860393e
@ -376,40 +376,40 @@ define(function(require) {
|
||||
timeout: true,
|
||||
id: data.ID,
|
||||
monitor: {
|
||||
monitor_resources : "CPU,MEMORY,NET_TX,NET_RX"
|
||||
monitor_resources : "MONITORING/CPU,MONITORING/MEMORY,MONITORING/NETTX,MONITORING/NETRX"
|
||||
}
|
||||
},
|
||||
success: function(request, response){
|
||||
var vm_graphs = [
|
||||
{
|
||||
monitor_resources : "CPU",
|
||||
monitor_resources : "MONITORING/CPU",
|
||||
labels : "Real CPU",
|
||||
humanize_figures : false,
|
||||
div_graph : $(".vm_cpu_graph", context)
|
||||
},
|
||||
{
|
||||
monitor_resources : "MEMORY",
|
||||
monitor_resources : "MONITORING/MEMORY",
|
||||
labels : "Real MEM",
|
||||
humanize_figures : true,
|
||||
div_graph : $(".vm_memory_graph", context)
|
||||
},
|
||||
{
|
||||
labels : "Network reception",
|
||||
monitor_resources : "NET_RX",
|
||||
monitor_resources : "MONITORING/NETRX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
div_graph : $(".vm_net_rx_graph", context)
|
||||
},
|
||||
{
|
||||
labels : "Network transmission",
|
||||
monitor_resources : "NET_TX",
|
||||
monitor_resources : "MONITORING/NETTX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
div_graph : $(".vm_net_tx_graph", context)
|
||||
},
|
||||
{
|
||||
labels : "Network reception speed",
|
||||
monitor_resources : "NET_RX",
|
||||
monitor_resources : "MONITORING/NETRX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
y_sufix : "B/s",
|
||||
@ -418,7 +418,7 @@ define(function(require) {
|
||||
},
|
||||
{
|
||||
labels : "Network transmission speed",
|
||||
monitor_resources : "NET_TX",
|
||||
monitor_resources : "MONITORING/NETTX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
y_sufix : "B/s",
|
||||
|
@ -87,19 +87,19 @@ define(function(require) {
|
||||
data: {
|
||||
id: that.element.ID,
|
||||
monitor: {
|
||||
monitor_resources : "CPU,MEMORY"
|
||||
monitor_resources : "MONITORING/CPU,MONITORING/MEMORY"
|
||||
}
|
||||
},
|
||||
success: function(req, response) {
|
||||
var vmGraphs = [
|
||||
{
|
||||
monitor_resources : "CPU",
|
||||
monitor_resources : "MONITORING/CPU",
|
||||
labels : Locale.tr("Real CPU"),
|
||||
humanize_figures : false,
|
||||
div_graph : $(".vm_cpu_graph")
|
||||
},
|
||||
{
|
||||
monitor_resources : "MEMORY",
|
||||
monitor_resources : "MONITORING/MEMORY",
|
||||
labels : Locale.tr("Real MEM"),
|
||||
humanize_figures : true,
|
||||
div_graph : $(".vm_memory_graph")
|
||||
|
@ -363,28 +363,28 @@ define(function(require) {
|
||||
data: {
|
||||
id: that.element.ID,
|
||||
monitor: {
|
||||
monitor_resources : "NET_TX,NET_RX"
|
||||
monitor_resources : "MONITORING/NETTX,MONITORING/NETRX"
|
||||
}
|
||||
},
|
||||
success: function(req, response) {
|
||||
var vmGraphs = [
|
||||
{
|
||||
labels : Locale.tr("Network reception"),
|
||||
monitor_resources : "NET_RX",
|
||||
monitor_resources : "MONITORING/NETRX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
div_graph : $("#vm_net_rx_graph")
|
||||
},
|
||||
{
|
||||
labels : Locale.tr("Network transmission"),
|
||||
monitor_resources : "NET_TX",
|
||||
monitor_resources : "MONITORING/NETTX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
div_graph : $("#vm_net_tx_graph")
|
||||
},
|
||||
{
|
||||
labels : Locale.tr("Network reception speed"),
|
||||
monitor_resources : "NET_RX",
|
||||
monitor_resources : "MONITORING/NETRX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
y_sufix : "B/s",
|
||||
@ -393,7 +393,7 @@ define(function(require) {
|
||||
},
|
||||
{
|
||||
labels : Locale.tr("Network transmission speed"),
|
||||
monitor_resources : "NET_TX",
|
||||
monitor_resources : "MONITORING/NETTX",
|
||||
humanize_figures : true,
|
||||
convert_from_bytes : true,
|
||||
y_sufix : "B/s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user