-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtelescope_config.yaml
More file actions
88 lines (88 loc) · 2.72 KB
/
telescope_config.yaml
File metadata and controls
88 lines (88 loc) · 2.72 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
server:
log_level: info
metrics:
global:
scrape_interval: 15s
external_labels:
project_id: test
project_name: test
remote_write:
- url: https://example.com/write
basic_auth:
username: user
password: pass
wal_directory: /tmp/telescope
configs:
- name: test_polkadot_metrics
host_filter: false
scrape_configs:
- job_name: test_polkadot_relaychain_job_0
static_configs:
- targets:
- localhost:30333
- job_name: test_polkadot_parachains_job_1
static_configs:
- targets:
- localhost:9933
logs:
configs:
- name: telescope_logs
clients:
- url: https://loki.example.com/loki/api/v1/push
basic_auth:
username: user
password: pass
external_labels:
project_id: test
project_name: test
positions:
filename: /tmp/telescope_logs
scrape_configs:
- job_name: test_docker_logs
docker_sd_configs:
- host: unix:///var/run/docker.sock
refresh_interval: 5s
relabel_configs:
- source_labels:
- __meta_docker_container_name
regex: /(.*)
target_label: container
- source_labels:
- __meta_docker_container_log_stream
target_label: logstream
- source_labels:
- __meta_docker_container_label_scrape_location
target_label: job
- source_labels:
- __meta_docker_container_label_scrape_location
target_label: scrape_location
- source_labels:
- __meta_docker_container_label_instance
target_label: instance
- source_labels:
- __meta_docker_container_label_network
target_label: network
- source_labels:
- __meta_docker_container_label_client_name
target_label: client_name
- source_labels:
- __meta_docker_container_label_group
target_label: group
- source_labels:
- __meta_docker_container_label_host_type
target_label: host_type
- source_labels:
- __meta_docker_container_label_project_name
target_label: project_name
- source_labels:
- __meta_docker_container_label_project_id
target_label: project_id
integrations:
agent:
autoscrape:
enable: true
metrics_instance: test_polkadot_metrics
node_exporter:
autoscrape:
enable: true
metrics_instance: test_polkadot_metrics