Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Prometheusでデータの水平分割を試みる/Let's split prometheu...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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.2k
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
シンプルな設定ファイルで実現する AWS IAM Identity Center の ユーザー管理Terraformフレームワークを公開しました / Simplifying AWS IAM Identity Center User Management: An Open-Source Terraform Framework
yamaguchitk333
1
330
AWSセキュリティで活用するAI機能
cmusudakeisuke
1
340
"計画的無茶振り"を通してAIネイティブ世代の新人を育てる
subroh0508
1
120
仕様駆動開発の、その先へ。決める力と確かめる仕組み
inariku
0
110
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
150
自宅サーバと脆弱性
masakiokuda
1
120
1週間、Opus封印でお願いします
kintotechdev
0
340
【Oracle AI SPOTLIGHT ウェビナー】事例から見る!なぜOCIが選ばれたのか ― AI時代のクラウド戦略を紐解く ―
oracle4engineer
PRO
1
120
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
340
Patterns in AI Driven Software Development
akosma
PRO
0
300
Adversary Infrastructure Hunting101
disconinja
0
160
AI駆動開発における開発環境のセキュリティの考え方
yamahiro
2
650
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.6k
Producing Creativity
orderedlist
PRO
348
41k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Mobile First: as difficult as doing things right
swwweet
225
10k
Exploring anti-patterns in Rails
aemeredith
4
550
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
740
The SEO identity crisis: Don't let AI make you average
varn
0
610
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
460
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
470
Navigating Team Friction
lara
192
16k
A Tale of Four Properties
chriscoyier
163
24k
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!