Skip to content

Instantly share code, notes, and snippets.

@naeemaei
Last active January 2, 2022 13:12
Show Gist options
  • Save naeemaei/8c28c171acc3bbdaae8561fe3b827436 to your computer and use it in GitHub Desktop.
Save naeemaei/8c28c171acc3bbdaae8561fe3b827436 to your computer and use it in GitHub Desktop.
Prometheus Monitoring Job Example
- job_name: "web-api"
scrape_interval: 5s
dns_sd_configs:
- names:
- "tasks.web-api"
type: "A"
port: 8008
metrics_path: /metrics-text
scheme: http
static_configs:
- targets: ["ex1-web-api:80", "ex2-web-api:80"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment