# Realtime metrics with Go: Running InfluxDB in production

DevFeed: [Realtime metrics with Go: Running InfluxDB in production](<https://devfeed.tech/articles/realtime-metrics-with-go-running-influxdb-in-production-27927.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2015-04-14-timeseries_influxdb/>)

Author: Xoan Vilas Follow

Published: 2015-04-14T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Grafana](<https://devfeed.tech/topics/grafana.md>), [observability pipelines](<https://devfeed.tech/topics/observability-pipelines.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>)

Tags: [64gb-ram](<https://devfeed.tech/tags/64gb-ram.md>), [angularjs](<https://devfeed.tech/tags/angularjs.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [boltdb](<https://devfeed.tech/tags/boltdb.md>), [cache](<https://devfeed.tech/tags/cache.md>), [clustering](<https://devfeed.tech/tags/clustering.md>), [collectd](<https://devfeed.tech/tags/collectd.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [dashboards](<https://devfeed.tech/tags/dashboards.md>), [database](<https://devfeed.tech/tags/database.md>), [debian](<https://devfeed.tech/tags/debian.md>), [devops](<https://devfeed.tech/tags/devops.md>), [go](<https://devfeed.tech/tags/go.md>), [influxdb](<https://devfeed.tech/tags/influxdb.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [production](<https://devfeed.tech/tags/production.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [realtime](<https://devfeed.tech/tags/realtime.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

## AI overview

trivago's InfluxDB v0.8.8 deployment handled about 10,000 values per second from 150 clients and stored over 1.6 million series, but query and continuous-query costs shaped its operations. The stack used Collectd over the Graphite TCP API, Grafana, LevelDB, and a Varnish cache in front of a single 64 GB server; clustering was deferred over Raft issues. Encoding dimensions in series names enabled flexible Grafana dashboards, but made summaries expensive. Continuous queries could precompute merges, at the cost of CPU and memory, and were disabled after slowing ingestion and causing client buffering. Long-range and aggregate queries were resource intensive, so the team cached queries and narrowed regular-expression matches. The account also cautions that deleting data was expensive and shard settings required advance planning. These findings describe the stated older versions and setup.

## Source excerpt

At trivago we love hotels above everything else, but we also like metrics, we love to measure everything, compare, decide, improve and then rinse and repeat. In this blog entry we are going to describe our experience with InfluxDB, a time series database that we are using to store some real time metrics.