Monitoring, metrics collection and visualization using InfluxDB and Grafana

Case-example

Building blocks

InfluxDB — The metrics database

Telegraf — The metrics collector

[outputs]
[outputs.influxdb]
url = "https://teledb.htn-aiven-demo.aivencloud.com:21950"
database = "dbb253c1e025704a4494f3f65412b70e30"
username = "usr2059f5ef88fb46e49bd1f5fd0d464d80"
password = "password_goes_here"
ssl_ca = "/etc/telegraf/htn-aiven-demo-ca.crt"
precision = "s"
[inputs]
[inputs.statsd]
service_address = "127.0.0.1:8125"
delete_gauges = true
delete_counters = true
delete_sets = false
delete_timings = true
percentiles = [90]
allowed_pending_messages = 10000
percentile_limit = 100
var statsd = require("node-statsd");var statsd_client = new statsd({
host: "<telegraf_ip>",
port: 8125,
});
statsd_client.gauge("image_size,source=30", 48436,
function(error, bytes) {
statsd_client.close();
}
);

Grafana — The dashboard

What next?

Hosted InfluxDB and Grafana at Aiven.io

--

--

--

Your database in the cloud, www.aiven.io

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aiven

Aiven

Your database in the cloud, www.aiven.io

More from Medium

APIBackuper: a command-line tool to archive/backup data API calls

Three scenarios and five optimizations of Apache DolphinScheduler in XWBank for real-time, offline…

New release! Support for Kubernetes, multiple connectors added, SeaTunnel 2.1.2 is here!

Taming the monster: Building data pipelines with AWS Step Functions