Versions Compared

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