Service Discovery

  • 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
  • Cloud support for (ASW, Azure , Google, ...)
  • Cluster managers (kubernetes, Maration, ...)
  • Generic mechanisms (DNS, Consul, Zookeeper, ...)

Service Discovery - Example AWS

  • EC2 Example:
    • Add following config to /etc/prometheus/prometheus.yml
  • 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

Service Discovery - Example Kubernetes

  • Kubernetes Example:
    • Add following config to /etc/prometheus/prometheus.yml

Service Discovery - Example DNS

  • DNS Example:
    • Add following config to /etc/prometheus/prometheus.yml

Service Discovery - Example using file

  • File Example:
    • Add following config to /etc/prometheus/prometheus.yml
    • Format targets.json
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.