Skip to content

Commit f4b3b29

Browse files
committed
Added Prometheus Exporter to the status interface
1 parent e86209c commit f4b3b29

File tree

2 files changed

+236
-171
lines changed

2 files changed

+236
-171
lines changed

collectors/etc/prometheus_conf.py

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
#!/usr/bin/env python
22

33
def enabled():
4-
return True
4+
return False
5+
56

67
def get_settings():
7-
"""Prometheus Exporter Targets Connection Details"""
8-
return {
9-
'targets': [{
10-
'target_name': 'hazelcast',
11-
'target_host': 'localhost',
12-
'target_port': 8080,
13-
},
14-
{
15-
'target_host': 'localhost',
16-
'target_port': 8080,
17-
},
18-
{
19-
'target_service': 'hazelcast',
20-
'target_instance': 'hazelcast01.consul',
21-
'target_host': 'localhost',
22-
'target_port': 8080,
23-
'collection_interval': 5
24-
}
25-
],
26-
'collection_interval': 15, # seconds, How often to collect metric data
27-
'default_timeout': 10.0, # seconds
28-
'include_service_tags': False
29-
}
8+
"""Prometheus Exporter Targets Connection Details"""
9+
return {
10+
'targets': [{
11+
'target_service': 'hazelcast',
12+
'target_instance': 'hazelcast01.consul',
13+
'target_host': 'localhost',
14+
'target_port': 8080,
15+
'collection_interval': 15
16+
}
17+
],
18+
'collection_interval': 60, # seconds, How often to collect metric data
19+
'default_timeout': 10.0, # seconds
20+
'include_service_tags': True
21+
}

0 commit comments

Comments
 (0)