@@ -5,6 +5,8 @@ This exporter exposes metrics from (deprecated)
5
5
for
6
6
[ Prometheus] ( https://prometheus.io ) .
7
7
8
+ Currently only some metrics from the MoveScu queue are exported.
9
+
8
10
## Installation
9
11
10
12
### Download
@@ -19,3 +21,49 @@ and make it executable:
19
21
### Build it yourself
20
22
21
23
Clone this repo and build the binary via ` make ` (requires Go to be installed).
24
+
25
+ ## Usage
26
+
27
+ Start the exporter on the host running dcm4chee:
28
+
29
+ $ ./dcm4chee2-exporter -u admin -p secret -s /opt/dcm4chee/bin/twiddle.sh
30
+ ...
31
+
32
+ The exporter provides dcm4chee's metrics via HTTP which can be scraped by
33
+ Prometheus:
34
+
35
+ $ curl http://localhost:9404/metrics | grep dcm4chee2
36
+ # HELP dcm4chee2_movescu_queue_delivering_count The number of messages currently being delivered.
37
+ # TYPE dcm4chee2_movescu_queue_delivering_count gauge
38
+ dcm4chee2_movescu_queue_delivering_count 0
39
+ # HELP dcm4chee2_movescu_queue_message_count The number of messages in the queue.
40
+ # TYPE dcm4chee2_movescu_queue_message_count gauge
41
+ dcm4chee2_movescu_queue_message_count 3
42
+ # HELP dcm4chee2_movescu_queue_scheduled_message_count The number of scheduled messages in the queue.
43
+ # TYPE dcm4chee2_movescu_queue_scheduled_message_count gauge
44
+ dcm4chee2_movescu_queue_scheduled_message_count 3
45
+ # HELP dcm4chee2_scrape_duration_seconds Duration of backend response in seconds.
46
+ # TYPE dcm4chee2_scrape_duration_seconds gauge
47
+ dcm4chee2_scrape_duration_seconds 0.448780636
48
+ # HELP dcm4chee2_up Availability of Dcm4chee 2.
49
+ # TYPE dcm4chee2_up gauge
50
+ dcm4chee2_up 1
51
+
52
+ All available options:
53
+
54
+ $ ./dcm4chee2-exporter --help
55
+ Dcm4chee 2 Prometheus Exporter (version ...)
56
+
57
+ This exporter exposes metrics from (deprecated) dcm4chee 2 for Prometheus.
58
+
59
+ Usage:
60
+ -a string
61
+ Address to listen on (default ":9404")
62
+ -p string
63
+ Password of JBoss admin (default "admin")
64
+ -s string
65
+ Path to JBoss twiddle script (default "twiddle.sh")
66
+ -u string
67
+ Username of JBoss admin (default "admin")
68
+
69
+ Homepage: https://github.com/bjoernalbers/dcm4chee2-exporter
0 commit comments