Roll your own Service Discovery Simon Pasquier @SimonHiker - - PowerPoint PPT Presentation

roll your own service discovery
SMART_READER_LITE
LIVE PREVIEW

Roll your own Service Discovery Simon Pasquier @SimonHiker - - PowerPoint PPT Presentation

Roll your own Service Discovery Simon Pasquier @SimonHiker Prometheus Service Discovery Avoid static configuration files No reloading Always up-to-date Currently supported Files DNS Consul Kubernetes Marathon


slide-1
SLIDE 1

Roll your own Service Discovery

Simon Pasquier @SimonHiker

slide-2
SLIDE 2

Prometheus Service Discovery

Avoid static configuration files No reloading Always up-to-date

slide-3
SLIDE 3

Currently supported

  • Files
  • DNS
  • Consul
  • Kubernetes
  • Marathon
  • “Major” cloud providers
slide-4
SLIDE 4

Add more?

Sorry but no new Service Discovery are being added :-(

slide-5
SLIDE 5

Add more?

Sorry but no new Service Discovery are being added :-(

slide-6
SLIDE 6

Add more?

Sorry but no new Service Discovery are being added :-(

slide-7
SLIDE 7

Add more?

Sorry but no new Service Discovery are being added :-(

slide-8
SLIDE 8

Add more?

Sorry but no new Service Discovery are being added :-(

slide-9
SLIDE 9

But why?

slide-10
SLIDE 10

But why?

slide-11
SLIDE 11

What then?

https://prometheus.io/blog/2018/07/05/implementing-custom-sd/

slide-12
SLIDE 12

How it works

SD app API service Prometheus SD file query write read targets

slide-13
SLIDE 13

Concrete example

https://github.com/scaleway/prometheus-scw-sd https://github.com/simonpasquier/prometheus-scaleway-sd ~ 200 lines of code

slide-14
SLIDE 14

Things to look after

  • Take care of removed/deleted targets.
  • Instrument your SD application.
  • Add yourself to the Prometheus documentation.