Skip to content

Commit

Permalink
[yugabyte#8302] Platform: Scrape platform prometheus metrics in repli…
Browse files Browse the repository at this point in the history
…cated

Summary: Added scrape config to scrape `/api/v1/prometheus_metrics` from platform.

Test Plan: Created custom prometheus config and searched for jvm stats.

Reviewers: sanketh, dskorobogaty, rtsisyk, daniel

Reviewed By: daniel

Subscribers: daniel, jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11482
  • Loading branch information
WesleyW committed May 8, 2021
1 parent bc28a34 commit 3a08c8b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion managed/devops/replicated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,18 @@ components:
monitor: 'swamper'
scrape_configs:
- job_name: 'prometheus'
scrape_interval: {{repl ConfigOption "prometheus_scrape_interval"}}
scrape_timeout: {{repl ConfigOption "prometheus_scrape_timeout"}}
static_configs:
- targets: ['{{repl HostPrivateIpAddress "prometheus" "prom/prometheus" }}:9090']
- job_name: 'platform'
scrape_timeout: {{repl ConfigOption "prometheus_scrape_timeout"}}
metrics_path: "/api/v1/prometheus_metrics"
static_configs:
- targets: [
'{{repl HostPrivateIpAddress "prometheus" "prom/prometheus" }}:9000'
]
- job_name: "node"
file_sd_configs:
- files:
Expand Down

0 comments on commit 3a08c8b

Please sign in to comment.