How to use the grafana-dash-gen.Target function in grafana-dash-gen

To help you get started, we’ve selected a few grafana-dash-gen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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;
}
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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;
}
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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;
}
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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;
}
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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
        }
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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')
        ]
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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;
}
github uber-node / ringpop-common / tools / grafana-dash / gen-dashboard.js View on Github external
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: {

grafana-dash-gen

A grafana dashboard generator

MIT
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis