16379: Adds prometheus service for monitoring arvados & postgresql.
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / pillars / prometheus_server.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 ### PROMETHEUS
7 prometheus:
8   wanted:
9     component:
10       - prometheus
11       - alertmanager
12       - blackbox_exporter
13   pkg:
14     use_upstream_repo: true
15     use_upstream_archive: true
16
17     component:
18       prometheus:
19         config:
20           global:
21             scrape_interval: 15s
22             evaluation_interval: 15s
23           rule_files:
24             - rules.yml
25
26           scrape_configs:
27             - job_name: prometheus
28               # metrics_path defaults to /metrics
29               # scheme defaults to http.
30               static_configs:
31               - targets: ['localhost:9090']
32                 labels:
33                   instance: mon.__CLUSTER__
34                   cluster: __CLUSTER__
35
36             ## Arvados unique jobs
37             - job_name: keep_web
38               bearer_token: __MANAGEMENT_TOKEN__
39               scheme: https
40               static_configs:
41                 - targets: ['keep.__CLUSTER__.__DOMAIN__:443']
42                   labels:
43                     instance: keep-web.__CLUSTER__
44                     cluster: __CLUSTER__
45             - job_name: keep_balance
46               bearer_token: __MANAGEMENT_TOKEN__
47               static_configs:
48                 - targets: ['__CONTROLLER_INT_IP__:9005']
49                   labels:
50                     instance: keep-balance.__CLUSTER__
51                     cluster: __CLUSTER__
52             - job_name: keepstore
53               bearer_token: __MANAGEMENT_TOKEN__
54               static_configs:
55                 - targets: ['__KEEPSTORE0_INT_IP__:25107']
56                   labels:
57                     instance: keep0.__CLUSTER__
58                     cluster: __CLUSTER__
59                 - targets: ['__KEEPSTORE1_INT_IP__:25107']
60                   labels:
61                     instance: keep1.__CLUSTER__
62                     cluster: __CLUSTER__
63             - job_name: arvados_dispatch_cloud
64               bearer_token: __MANAGEMENT_TOKEN__
65               static_configs:
66                 - targets: ['__CONTROLLER_INT_IP__:9006']
67                   labels:
68                     instance: arvados-dispatch-cloud.__CLUSTER__
69                     cluster: __CLUSTER__
70
71             # Database
72             - job_name: postgresql
73               static_configs:
74                 - targets: [
75                     '__DATABASE_INT_IP__:9187',
76                     '__DATABASE_INT_IP__:3903'
77                   ]
78                   labels:
79                     instance: database.__CLUSTER__
80                     cluster: __CLUSTER__