Log in
Spaces
People
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
Public Space
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (7)
Page History
Page Information
View in Hierarchy
View Source
Export to Word
Pages
…
Public Space Home
12. Monitoring Research
12-02. Prometheus
17. Service Discovery of Prometheus
Page History
Versions Compared
Old Version
1
changes.mady.by.user
Sansae
Saved on
Apr 28, 2021
compared with
New Version
Current
changes.mady.by.user
Sansae
Saved on
Apr 29, 2021
View Page History
Key
This line was added.
This line was removed.
Formatting was changed.
Info
Table of Contents
Service Discovery
Info
Definition: Service discovery
Service discovery is the automatic detection of devices and services offered by these devices on a computer network.
Not really a service discovery mechanism
Image Added
Cloud support for (ASW, Azure , Google, ...)
Cluster managers (kubernetes, Maration, ...)
Generic mechanisms (DNS, Consul, Zookeeper, ...)
Service Discovery - Example AWS
Info
EC2 Example:
Add following config to /etc/prometheus/prometheus.yml
Image Added
Make sure the user has the following IAM role :
AmazonEC2ReadOnlyAccess
Make sure you security groups allow access to port (9100, 9090)
EC2 Example:
Only monitor instances started with the name PROD
Relabel ip address to instance id for convenience
Image Added
Service Discovery - Example Kubernetes
Info
Kubernetes Example:
Add following config to /etc/prometheus/prometheus.yml
Image Added
Service Discovery - Example DNS
Info
DNS Example:
Add following config to /etc/prometheus/prometheus.yml
Image Added
Service Discovery - Example using file
Info
File Example:
Add following config to /etc/prometheus/prometheus.yml
Image Added
Format targets.json
Image Added
Overview
Content Tools
{"serverDuration": 89, "requestCorrelationId": "2125e16844364cf6"}