|
7 | 7 | services.prometheus = { |
8 | 8 | enable = true; |
9 | 9 | globalConfig.scrape_interval = "10s"; # "1m" |
| 10 | + retentionTime = "90d"; |
10 | 11 | scrapeConfigs = [ |
11 | 12 | { |
12 | 13 | job_name = "node"; |
13 | 14 | static_configs = [{ |
14 | 15 | targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; |
15 | 16 | }]; |
16 | 17 | } |
17 | | - { |
18 | | - job_name = "xtcp"; |
19 | | - static_configs = [{ |
20 | | - targets = [ "localhost:9088" ]; |
21 | | - }]; |
22 | | - } |
23 | | - { |
24 | | - job_name = "hp1_xtcp"; |
25 | | - static_configs = [{ |
26 | | - targets = [ "hp1:9088" ]; |
27 | | - }]; |
28 | | - } |
29 | | - { |
30 | | - job_name = "clickhouse"; |
31 | | - static_configs = [{ |
32 | | - #targets = [ "localhost:9363" ]; |
33 | | - targets = [ "localhost:19363" ]; |
34 | | - }]; |
35 | | - } |
36 | | - { |
37 | | - job_name = "hp1"; |
38 | | - static_configs = [{ |
39 | | - targets = [ "hp1:${toString config.services.prometheus.exporters.node.port}" ]; |
40 | | - }]; |
41 | | - } |
42 | | - { |
43 | | - job_name = "hp1_clickhouse"; |
44 | | - static_configs = [{ |
45 | | - #targets = [ "localhost:9363" ]; |
46 | | - targets = [ "hp1:19363" ]; |
47 | | - }]; |
48 | | - } |
49 | | - { |
50 | | - job_name = "hp2"; |
51 | | - static_configs = [{ |
52 | | - targets = [ "hp2:${toString config.services.prometheus.exporters.node.port}" ]; |
53 | | - }]; |
54 | | - } |
55 | | - { |
56 | | - job_name = "hp2_clickhouse"; |
57 | | - static_configs = [{ |
58 | | - #targets = [ "localhost:9363" ]; |
59 | | - targets = [ "hp2:19363" ]; |
60 | | - }]; |
61 | | - } |
| 18 | + # { |
| 19 | + # job_name = "xtcp"; |
| 20 | + # static_configs = [{ |
| 21 | + # targets = [ "localhost:9088" ]; |
| 22 | + # }]; |
| 23 | + # } |
| 24 | + # { |
| 25 | + # job_name = "hp1_xtcp"; |
| 26 | + # static_configs = [{ |
| 27 | + # targets = [ "hp1:9088" ]; |
| 28 | + # }]; |
| 29 | + # } |
| 30 | + # { |
| 31 | + # job_name = "clickhouse"; |
| 32 | + # static_configs = [{ |
| 33 | + # #targets = [ "localhost:9363" ]; |
| 34 | + # targets = [ "localhost:19363" ]; |
| 35 | + # }]; |
| 36 | + # } |
| 37 | + # { |
| 38 | + # job_name = "hp1"; |
| 39 | + # static_configs = [{ |
| 40 | + # targets = [ "hp1:${toString config.services.prometheus.exporters.node.port}" ]; |
| 41 | + # }]; |
| 42 | + # } |
| 43 | + # { |
| 44 | + # job_name = "hp1_clickhouse"; |
| 45 | + # static_configs = [{ |
| 46 | + # #targets = [ "localhost:9363" ]; |
| 47 | + # targets = [ "hp1:19363" ]; |
| 48 | + # }]; |
| 49 | + # } |
| 50 | + # { |
| 51 | + # job_name = "hp2"; |
| 52 | + # static_configs = [{ |
| 53 | + # targets = [ "hp2:${toString config.services.prometheus.exporters.node.port}" ]; |
| 54 | + # }]; |
| 55 | + # } |
| 56 | + # { |
| 57 | + # job_name = "hp2_clickhouse"; |
| 58 | + # static_configs = [{ |
| 59 | + # #targets = [ "localhost:9363" ]; |
| 60 | + # targets = [ "hp2:19363" ]; |
| 61 | + # }]; |
| 62 | + # } |
62 | 63 | #{ |
63 | 64 | # job_name = "chromebox1"; |
64 | 65 | # static_configs = [{ |
|
0 commit comments