Project Frankenstein A multi-tenant, horizontally scalable Prometheus as a Service Tom Wilkie (& Julius Volz) Weaveworks, August 2016

“the best way to visualise, manage & monitor your cloud native application”

Design

why not just run my own Prometheus? •

the as-a-service bit provides authentication and access control



virtually infinite retention; all the state is managed for you, by us



provide a different story around durability, HA and scalability



(eventually) better query performance, especially for long queries

requirements: 1. API compatible with Prometheus 2. easy to operate and manage 3. tens of thousands of users, tens of millions samples/s 4. cost effective to run 5. reuse as much of Prometheus as possible … so we can sell it

Aim: build proof of concept as quickly as possible

16/06

started design doc

22/06

circulated on list

22/06

initial commit

26/07

launch jobs

25/08

give talk!

http://goo.gl/prdUYV

Your DC Weave Cloud

Retriever

Frontend, Authenticator

scraping your jobs



Distributor

Ingester

Ingester

DynamoDB

Distributor

Ingester

S3

Retriever

Does scraping and relabelling. Is a vanilla Prometheus plus: •

Brian Brazil’s generic write PR (#1487)



Some modification to prevent local storage + indexing /bin/prometheus -retrieval-only -storage.remote.generic-url=...

Distributor



Uses consistent hashing to assign timeseries to Ingesters



Input to hash is (user ID, metric name)



Tokens stored in Consul



Also currently handles queries http://goo.gl/U9u1U2

Ingester



Heavily modified MemorySeriesStorage



Use same chunk format as Prometheus



Keeps everything in memory (for up to an hour)



Also stores in memory inverted index for queries



Flushes chunks to S3 and indexes them in DynamoDB

DynamoDB

S3

External inverted index maintained in DynamoDB, chunks stored in S3 Item in DynamoDB looks like: { hash key: “{user ID}:{metric name}:{hour}”, range key: “{label name}:{label value}:{chunk ID}”, metric: ..., from, through: ..., ID: ..., }

Evaluation

The Good •

It works! And in ~2 months.



Seems pretty scalable, handling two clusters right now



The Bad •

Hashing scheme means can’t do queries that don’t involve metric names.



Possible to hotspot an ingester

Query performance better than expected The Ugly: the code…

Demo

Lots left to do… Features: • •

Recording rules Alerting & Alertmanager

Reliability: •

Replication between ingesters, commit log etc



Ingestor lifecycle



Separate query service?

Performance: •

Query parallelisation



Background chunk coalescing

Code: •

Code cleanup



Upstream appropriate changes

Questions? https://github.com/tomwilkie/prometheus

Try it out! Email [email protected] for instructions and to get on white list

Project Frankenstein PromCon slides.pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Project ...

4MB Sizes 3 Downloads 163 Views

Recommend Documents

Young frankenstein swesub
Young frankenstein swesub - Download.Young frankenstein swesub.Hate Story 3 2015 Hindi 1CD. DvDScRx264 AAC - Hon3y.Young frankenstein swesub.Young frankenstein swesub.Fromtop to bottom.Fallout 4 pdf. Alien vs predator:requiem.889256389.Thethick 4.Vio

i frankenstein :movies.pdf
Page 1. Whoops! There was a problem loading more pages. i frankenstein :movies.pdf. i frankenstein :movies.pdf. Open. Extract. Open with. Sign In. Main menu.

201707 PromCon 2017- Monitoring Cloudflare's planet-scale edge ...
201707 PromCon 2017- Monitoring Cloudflare's planet-scale edge network with Prometheus.pdf. 201707 PromCon 2017- Monitoring Cloudflare's planet-scale ...

pdf-1829\magicimage-filmbooks-presents-frankenstein-universal ...
Try one of the apps below to open or edit this item. pdf-1829\magicimage-filmbooks-presents-frankenstein-universal-filmscripts-series-by-garrett-fort.pdf.

2017 Frankenstein Colloquium - Master Schedule (FINAL).pdf ...
Jan 30, 2017 - Page 2 of 5. Event Time Location. Arrival & Registration 7:50am-8:30am FAPH Foyer. ******. Commencement Ceremony 8:30am-9:00am FAPH. Jon Kellam, Head of School, introduces commencement speaker. Dr. Richard Enos, Professor & Holder of L

Frankenstein Streaming ITA 1931_ ...
Star Wars: Episode VII - The Force Awakens (2015) Frankenstein (1931). Page 1 of 1 ... MP4__________________________________.pdf. Frankenstein ...

i frankenstein dvdrip xvid.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...

2017 Frankenstein Colloquium - Master Schedule (FINAL).pdf ...
Thomas Keller Episcopal School of Dallas “Innocence Drenched in Repugnance” ... Kaitlin Ferreira Fossil Ridge High School “Feminism in Frankenstein”.

Frankenstein by Mary Shelley.pdf
I am already far north of London, and as I walk in the. streets of Petersburgh, I feel a cold northern breeze play. upon my cheeks, which braces my nerves and ...

Frankenstein by Mary Shelley.pdf
Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... Frankenstein by Mary Shelley.pdf. Frankenstein by Mary Shelley.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Frankenstein by Mary Shelley.pdf.