jool-exporter 21.6.15__tar.gz → 25.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/PKG-INFO +13 -7
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/PKG-INFO +13 -7
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/entry_points.txt +0 -1
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.py +12 -4
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/setup.py +1 -3
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/LICENSE +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/README.md +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/SOURCES.txt +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/dependency_links.txt +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/requires.txt +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/jool_exporter.egg-info/top_level.txt +0 -0
- {jool-exporter-21.6.15 → jool_exporter-25.3.8}/setup.cfg +0 -0
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: jool-exporter
|
|
3
|
-
Version:
|
|
3
|
+
Version: 25.3.8
|
|
4
4
|
Summary: Export `jool stats display` for prometheus
|
|
5
5
|
Home-page: http://github.com/cooperlees/jool-exporter
|
|
6
6
|
Author: Cooper Lees
|
|
7
7
|
Author-email: me@cooperlees.com
|
|
8
8
|
License: BSD
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Development Status :: 3 - Alpha
|
|
11
10
|
Classifier: License :: OSI Approved :: BSD License
|
|
12
11
|
Classifier: Programming Language :: Python :: 3
|
|
13
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
13
|
Requires-Python: >=3.8
|
|
17
14
|
Description-Content-Type: text/markdown
|
|
18
15
|
License-File: LICENSE
|
|
16
|
+
Requires-Dist: prometheus_client
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
19
27
|
|
|
20
28
|
# jool-exporter
|
|
21
29
|
|
|
@@ -174,5 +182,3 @@ We use Facebook's [ptr](https://github.com/facebookincubator/ptr) for testing.
|
|
|
174
182
|
It is driven by config in setup.py.
|
|
175
183
|
|
|
176
184
|
|
|
177
|
-
|
|
178
|
-
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: jool-exporter
|
|
3
|
-
Version:
|
|
3
|
+
Version: 25.3.8
|
|
4
4
|
Summary: Export `jool stats display` for prometheus
|
|
5
5
|
Home-page: http://github.com/cooperlees/jool-exporter
|
|
6
6
|
Author: Cooper Lees
|
|
7
7
|
Author-email: me@cooperlees.com
|
|
8
8
|
License: BSD
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Development Status :: 3 - Alpha
|
|
11
10
|
Classifier: License :: OSI Approved :: BSD License
|
|
12
11
|
Classifier: Programming Language :: Python :: 3
|
|
13
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
13
|
Requires-Python: >=3.8
|
|
17
14
|
Description-Content-Type: text/markdown
|
|
18
15
|
License-File: LICENSE
|
|
16
|
+
Requires-Dist: prometheus_client
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
19
27
|
|
|
20
28
|
# jool-exporter
|
|
21
29
|
|
|
@@ -174,5 +182,3 @@ We use Facebook's [ptr](https://github.com/facebookincubator/ptr) for testing.
|
|
|
174
182
|
It is driven by config in setup.py.
|
|
175
183
|
|
|
176
184
|
|
|
177
|
-
|
|
178
|
-
|
|
@@ -14,16 +14,18 @@ from socket import getfqdn
|
|
|
14
14
|
from subprocess import CompletedProcess, PIPE, run
|
|
15
15
|
from typing import Generator, Union
|
|
16
16
|
|
|
17
|
-
from prometheus_client import start_http_server
|
|
18
|
-
from prometheus_client.core import GaugeMetricFamily, REGISTRY
|
|
17
|
+
from prometheus_client import start_http_server
|
|
18
|
+
from prometheus_client.core import GaugeMetricFamily, REGISTRY
|
|
19
|
+
from prometheus_client.registry import Collector
|
|
19
20
|
|
|
20
21
|
|
|
22
|
+
DEFAULT_ADDR = "0.0.0.0"
|
|
21
23
|
DEFAULT_PORT = 6971
|
|
22
24
|
HOSTNAME = getfqdn()
|
|
23
25
|
LOG = logging.getLogger(__name__)
|
|
24
26
|
|
|
25
27
|
|
|
26
|
-
class JoolCollector:
|
|
28
|
+
class JoolCollector(Collector):
|
|
27
29
|
key_prefix = "jool"
|
|
28
30
|
labels = ["hostname"]
|
|
29
31
|
|
|
@@ -89,6 +91,12 @@ def main() -> int:
|
|
|
89
91
|
parser = argparse.ArgumentParser(
|
|
90
92
|
description="Export `jool stats display` for prometheus"
|
|
91
93
|
)
|
|
94
|
+
parser.add_argument(
|
|
95
|
+
"-a",
|
|
96
|
+
"--addr",
|
|
97
|
+
default=DEFAULT_ADDR,
|
|
98
|
+
help=f"Address to bind socket to [Default = {DEFAULT_ADDR}]",
|
|
99
|
+
)
|
|
92
100
|
parser.add_argument(
|
|
93
101
|
"-d", "--debug", action="store_true", help="Verbose debug output"
|
|
94
102
|
)
|
|
@@ -103,7 +111,7 @@ def main() -> int:
|
|
|
103
111
|
_handle_debug(args.debug)
|
|
104
112
|
|
|
105
113
|
LOG.info(f"Starting {sys.argv[0]}")
|
|
106
|
-
start_http_server(args.port)
|
|
114
|
+
start_http_server(args.port, args.addr)
|
|
107
115
|
REGISTRY.register(JoolCollector())
|
|
108
116
|
LOG.info(f"jool prometheus exporter - listening on {args.port}")
|
|
109
117
|
try:
|
|
@@ -33,7 +33,7 @@ def get_long_desc() -> str:
|
|
|
33
33
|
|
|
34
34
|
setup(
|
|
35
35
|
name="jool-exporter",
|
|
36
|
-
version="
|
|
36
|
+
version="25.3.8",
|
|
37
37
|
description="Export `jool stats display` for prometheus",
|
|
38
38
|
long_description=get_long_desc(),
|
|
39
39
|
long_description_content_type="text/markdown",
|
|
@@ -47,8 +47,6 @@ setup(
|
|
|
47
47
|
"License :: OSI Approved :: BSD License",
|
|
48
48
|
"Programming Language :: Python :: 3",
|
|
49
49
|
"Programming Language :: Python :: 3 :: Only",
|
|
50
|
-
"Programming Language :: Python :: 3.8",
|
|
51
|
-
"Programming Language :: Python :: 3.9",
|
|
52
50
|
],
|
|
53
51
|
python_requires=">=3.8",
|
|
54
52
|
entry_points={"console_scripts": ["jool-exporter = jool_exporter:main"]},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|