Monitoring, metrics collection and visualization using InfluxDB and Grafana


Building blocks

InfluxDB — The metrics database

Telegraf — The metrics collector

url = ""
database = "dbb253c1e025704a4494f3f65412b70e30"
username = "usr2059f5ef88fb46e49bd1f5fd0d464d80"
password = "password_goes_here"
ssl_ca = "/etc/telegraf/htn-aiven-demo-ca.crt"
precision = "s"
service_address = ""
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) {

Grafana — The dashboard

What next?

Hosted InfluxDB and Grafana at




Your database in the cloud,

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


Your database in the cloud,

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