Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Prometheusでデータの水平分割を試みる/Let's split prometheu...
Search
watawuwu
January 15, 2020
Technology
11k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Prometheusでデータの水平分割を試みる/Let's split prometheus data
watawuwu
January 15, 2020
More Decks by watawuwu
See All by watawuwu
データルーター?Vector/Getting Started with Vector
watawuwu
6
1.1k
KubernetesでWebアプリケーションをリリースするまでに必要なものは/What you need with Kubernetes
watawuwu
10
1.9k
Thanosってどうですか?/Getting Started with Thanos
watawuwu
1
1.1k
Argo入門/Getting Started with Argo
watawuwu
0
1.1k
Concourse入門 / Concourse Getting Started
watawuwu
3
2.3k
Other Decks in Technology
See All in Technology
Bucharest Tech Week 2026 - Guardians of the Cloud-Native Galaxy
edeandrea
PRO
0
140
コミットの「なぜ」を読む
ota1022
0
120
When Platform Engineering Meets GenAI
sucitw
0
170
飲食店もAIで。レジ締めやハンディシステムをつくってる話 / Using AI for restaurant management
vtryo
0
160
Lightning近況報告
kozy4324
0
220
Flow 不死:AI 時代 DevOps 的不變本質
cheng_wei_chen
2
500
AIチャット検索改善の3週間
kworkdev
PRO
2
170
不要なレビューをAIにまかせて AIコーディングの環境改善を加速した
shoota
1
260
AIAU_UMEMOGU_ninomiya_slide
ninomiya_ii
0
260
FPGAの開発コンペでZephyrを使ってみた
iotengineer22
0
200
千葉での単身赴任からAWSをやり続け、千葉に戻ってきた話
yama3133
1
120
いまさら聞けない「仕様駆動開発入門」 〜AI活用時代の開発プロセスを考える〜
findy_eventslides
2
200
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
420
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
330
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
400
Embracing the Ebb and Flow
colly
88
5.1k
The Invisible Side of Design
smashingmag
301
52k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
The Language of Interfaces
destraynor
162
27k
Marketing to machines
jonoalderson
1
5.5k
Transcript
Prometheus で データ分割を試みる Prometheus Meetup Tokyo #3
profile: name: Wataru Matsui org: [ zlab.co.jp ] twitter: @watawuwu
Agenda • Motivation • Non-goal • How to respond to
increase • How to scale out • Configuration • Browse and Aelrts • Issue
Motivation
Address growing data
Non-goal
× Highly available ◦ Data redundancy × Long term storage
How to respond to increase in memory and storage usage
• Reduce data retention • Prolong scrape interval • Reduce
unnecessary metrics • Scale up • Scale out • Remote Write/Storage
How to scale out without remote storage
Prometheus is easy to scale out Pod Prometheus Pod Pod
Pod Prometheus
Configuration
A. Per scrape rule • For popular settings in Kubernetes
◦ Container Metrics(cAdvisor) ◦ Node Metrics ◦ Application Metrics cAdvisor Node Application
A. Per scrape rule • Application Metrics can be easily
split into multiple scrape rules App A App B - job_name: 'app-xxx' kubernetes_sd_configs: - role: endpoints relabel_configs: - source_labels: [__meta_kubernetes_service_annotation_app_xxx_scrape] action: keep
B. Per metrics(Not Time series) • Same scrape target, but
decide whether to scrape by metrics name metric_relabel_configs: - source_labels: [__name__] action: drop regex: 'container_fs' cAdvisor cAdvisor
C. Per label hash • Switch targets by label hash
- source_labels: [__address__] modulus: ${shard_total} target_label: __tmp_hash action: hashmod - source_labels: [__tmp_hash] regex: ${shard_num} action: keep cAdvisor cAdvisor addr: 10.26.80.18 addr: 10.26.80.19 shard_num: 0 shard_num: 1 shard_total: 2
Browse And Alerts
A. Aggregate using Remote read API remote_read: - url: http://prometheus-01:9090/api/v1/read
read_recent: true - url: http://prometheus-02:9090/api/v1/read read_recent: true - url: http://prometheus-03:9090/api/v1/read read_recent: true
B. Aggregate using Thanos Querier Ruler Sidecar Sidecar Sidecar
Issue
× Not autoscale × Complicated by redundancy × Can't resharding
or rebalancing
Thanks!