Thanosってどうですか?/Getting Started with Thanos

Thanosってどうですか?/Getting Started with Thanos

E7a86f7090ecce18bc3848324741b04c?s=128

watawuwu

July 06, 2018
Tweet

Transcript

  1. Getting Started with Thanos

  2. profile: name: Wataru Matsui orz: [ zlab.co.jp, 3bi.tech ] twitter:

    @watawuwu role: [ Server, Infra, SRE ]
  3. Agenda ⊸ What’s Thanos ⊸ Why try Thanos & Key

    features ⊸ Design ⊸ Demo ⊸ Conclusions
  4. What’s Thanos?

  5. HA metric system with unlimited storage capacity for

  6. What’s Prometheus

  7. Monitoring system & time series database (時間が少ないので省略)

  8. Why try Thanos? And Key Features

  9. メトリクスデータを オブジェクトストレージ に保存できる Why try Thanos? POINT!! Reliable metrics data

    storage
  10. 複数Prometheusの メトリクスデータを マージし閲覧できる Why try Thanos? Global view POINT!!

  11. ロングタームなクエリの応答性を維持 するため、メトリクスデータをダウンサ ンプリング Why try Thanos? Downsampling

  12. 依存コンポーネントが少なく 既存のPrometheus環境に 追加することが簡単 Why try Thanos? Seamless integration

  13. Design

  14. Querier(Thanos) Prometheus targets Sidecar(Thanos) Prometheus Sidecar(Thanos) targets targets targets Merge

    & Deduplicate targets targets targets targets Global view HTTP API
  15. SSD Prometheus Sidecar(Thanos) targets targets targets Blocks targets targets targets

    Blocks Blocks targets targets targets Blocks targets targets targets Blocks Unlimited retention! Write
  16. Unlimited retention! Read targets targets targets Blocks Cache Store(Thanos) targets

    targets targets Blocks Querier(Thanos) Store API
  17. targets targets targets Blocks Disk Compactor(Thanos) targets targets targets Blocks

    Compaction & Downsampling Blocks Blocks
  18. targets targets targets Blocks Querier(Thanos) Prometheus Sidecar(Thanos) Full Architecture Store(Thanos)

    Compactor(Thanos)
  19. Use Case

  20. Only Backup Disk Prometheus Sidecar(Thanos) targets targets targets Blocks targets

    targets targets Blocks Blocks targets targets targets Blocks targets targets targets Blocks
  21. Querier(Thanos) Prometheus Sidecar(Thanos) Prometheus Sidecar(Thanos) HA or Aggregate

  22. targets targets targets Blocks Querier(Thanos) Prometheus Sidecar(Thanos) All Store(Thanos) Compactor(Thanos)

  23. Demo

  24. None
  25. Notice

  26. Prometheus >= v2.0.0 可能であればv2.2.1

  27. Conclusions

  28. 2018/07/04時点 Thanos has no official releases yet

  29. まだまだ動作検証中! (カジュアルに使う分には問題ない)

  30. 導入前には本当に長期間の保存 が必要か確認!? • 不要なデータを削減 • スクラップ間隔と保存期間を見直す • KPIデータは別のストレージを検討 • 古いデータの価値(YAGNI)

    場合によってはPrometheusだけでも十分!
  31. Thanks! WE ARE HIRING!! Kubernetes, Cloud Native zlab.co.jp