-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathprometheus.yaml
71 lines (62 loc) · 2.22 KB
/
prometheus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
global:
scrape_interval: 30s # Set the scrape interval to every 30 seconds. Default is every 1 minute.
scrape_timeout: 30s # Set the scrape timeout to shorter than or equal to scrape_interval. Default is every 1 minute.
# evaluation_interval: 60s # is set to the default every 1 minute.
# Alertmanager configuration (optional)
#alerting:
# alertmanagers:
# - static_configs:
# - targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. (optional)
#rule_files:
# - "purefb_alerts_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["prometheus-server.fqdn.com:9090"]
# ################################ #
# Pure Storage FlashBlade Number 1 #
# ################################ #
# Create a single scrape job for each selected metric endpoint per FlashBlade.
# It is NOT recommended to scrape the root /metrics endpoint as it can be an expensive query.
# Scrape job for Pure Storage FlashBlade 1 scraping /metrics/array
# ARRAYNAME01
- job_name: 'purefb_array_arrayname01'
metrics_path: /metrics/array
# Bearer authorization token
authorization:
credentials: T-11111111-1111-1111-1111-111111111111
params:
endpoint: ['arrayname01.fqdn.com']
static_configs:
# purefb openmetrics exporter
- targets:
- purefa-openmetrics-exporter.fqdn.com:9491
labels:
location: uk
site: London
instance: arrayname01
env: production
# ################################ #
# Pure Storage FlashBlade Number 2 #
# ################################ #
# Scrape job for Pure Storage FlashBlade 2 scraping /metrics/array
- job_name: 'purefb_array_arrayname02'
metrics_path: /metrics/array
# Bearer authorization token
authorization:
credentials: T-22222222-2222-2222-2222-222222222222
params:
endpoint: ['arrayname02.fqdn.com']
static_configs:
# purefb openmetrics exporter
- targets:
- purefa-openmetrics-exporter.fqdn.com:9491
labels:
location: fr
site: Paris
instance: arrayname02
env: test