Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new grafana.Target(getTarget("membership.membership-update-faulty"))
.sumSeries().alias('faulty').color('red')
/* eslint-enable max-len */
]
}));
row.addPanel(new grafana.Panels.Graph({
title: 'Checksum Compute Times',
span: 4,
targets: [
/* eslint-disable max-len */
new grafana.Target(getTarget("membership.compute-checksum-p95"))
.averageSeries().alias('p95'),
new grafana.Target(getTarget("membership.compute-checksum-p99"))
.averageSeries().alias('p99'),
new grafana.Target(getTarget("membership.compute-checksum-upper"))
.averageSeries().alias('upper')
/* eslint-enable max-len */
]
}));
return row;
}
function createDisseminationRow() {
var row = new grafana.Row();
row.state.title = 'DISSEMINATION';
row.state.showTitle = true;
row.addPanel(new grafana.Panels.SingleStat({
title: 'Max Piggyback',
span: 4,
targets: [
/* eslint-disable max-len */
new grafana.Target(getTarget('dissemination.max-piggyback'))
.maxSeries().alias('total')
/* eslint-enable max-len */
]
}));
return row;
}
new grafana.Target(getTarget("membership.membership-update-alive"))
.sumSeries().alias('alive').color('green'),
new grafana.Target(getTarget("membership.membership-update-suspect"))
.sumSeries().alias('suspect').color('yellow'),
new grafana.Target(getTarget("membership.membership-update-faulty"))
.sumSeries().alias('faulty').color('red')
/* eslint-enable max-len */
]
}));
row.addPanel(new grafana.Panels.Graph({
title: 'Checksum Compute Times',
span: 4,
targets: [
/* eslint-disable max-len */
new grafana.Target(getTarget("membership.compute-checksum-p95"))
.averageSeries().alias('p95'),
new grafana.Target(getTarget("membership.compute-checksum-p99"))
.averageSeries().alias('p99'),
new grafana.Target(getTarget("membership.compute-checksum-upper"))
.averageSeries().alias('upper')
/* eslint-enable max-len */
]
}));
return row;
}
function createGossipRow() {
var row = new grafana.Row();
row.state.title = 'GOSSIP';
row.state.showTitle = true;
row.addPanel(new grafana.Panels.SingleStat({
title: 'Cluster Size',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-send'))
.countSeries().alias('total')
],
legend: {
show: false
}
}));
row.addPanel(lineGraph({
title: 'Ping TX/sec',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-send'))
.scale(0.1).alias('total')
],
legend: {
show: false
row.addPanel(new grafana.Panels.Graph({
title: 'Ping-Req Response Times',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-req-p95'))
.averageSeries().alias('p95'),
new grafana.Target(getTarget('gossip.ping-req-p99'))
.averageSeries().alias('p99')
]
}));
row.addPanel(new grafana.Panels.Graph({
title: 'Protocol Frequency',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.protocol-freq-p99'))
],
legend: {
show: false
}
}));
return row;
}
title: 'Ping RX/sec',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-recv'))
.scale(0.1).alias('total')
],
legend: {
show: false
}
}));
row.addPanel(lineGraph({
title: 'Ping Response Times',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-p95'))
.averageSeries().alias('p95'),
new grafana.Target(getTarget('gossip.ping-p99'))
.averageSeries().alias('p99')
]
}));
row.addPanel(lineGraph({
title: 'Ping-Req TX/sec',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-req-send'))
.scale(0.1).alias('total')
],
legend: {
show: false
}
title: 'Ping-Req TX/sec',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-req-send'))
.scale(0.1).alias('total')
],
legend: {
show: false
}
}));
row.addPanel(new grafana.Panels.Graph({
title: 'Ping-Req RX/sec',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-req-recv'))
.sumSeries().scale(0.1).alias('total')
],
legend: {
show: false
}
}));
row.addPanel(new grafana.Panels.Graph({
title: 'Ping-Req Response Times',
span: 3,
targets: [
new grafana.Target(getTarget('gossip.ping-req-p95'))
.averageSeries().alias('p95'),
new grafana.Target(getTarget('gossip.ping-req-p99'))
.averageSeries().alias('p99')
]
span: 4,
targets: [
new grafana.Target(getTarget('system.process-rss'))
.scale(0.000001).alias('MBs')
],
legend: {
show: false
},
lines: true
}));
row.addPanel(lineGraph({
title: 'Process FDs',
span: 4,
targets: [
new grafana.Target(getTarget('system.process-fds')).alias('total')
],
legend: {
show: false
}
}));
return row;
}
function createSystemRow() {
var row = new grafana.Row();
row.state.title = 'SYSTEM';
row.state.showTitle = true;
row.addPanel(lineGraph({
title: 'Process CPU',
span: 4,
targets: [
new grafana.Target(getTarget('system.process-cpu'))
.derivative().scale(1.6666666667).removeBelowValue(0)
.alias('percent')
],
legend: {
show: false
}
}));
row.addPanel(lineGraph({
title: 'Process RSS',
span: 4,
targets: [
new grafana.Target(getTarget('system.process-rss'))
.scale(0.000001).alias('MBs')
],
legend: {