Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit c4f3386

Browse files
authored
adjusted config for debian package; fixed web autocompletion (#5)
1 parent ebdc7b8 commit c4f3386

File tree

3 files changed

+5
-2
lines changed
  • deb
    • DEBIAN
    • opt
      • vyatta/share/vyatta-cfg/templates/service/monitoring/node-exporter/web/max-requests
      • vyatta-node_exporter

3 files changed

+5
-2
lines changed

deb/DEBIAN/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: vyatta-node-exporter
2-
Version: 1.5.0
2+
Version: 1.6.1
33
Architecture: amd64
44
Maintainer: pkgs-hub <https://github.com/pkgs-hub>
55
Description: node_exporter for vyatta

deb/opt/vyatta-node_exporter/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def generate(node_exporter):
5050
port = node_exporter['web']['listen-address'][address].get("port", 9100)
5151
node_exporter['web']['listen-address'] = f"{address}:{port}"
5252

53+
# remove empty elements
54+
#node_exporter = {key: value for key, value in node_exporter.items() if value}
55+
5356
with open('/opt/vyatta-node_exporter/config.j2', 'r') as tmpl, open(config_file, 'w') as out:
5457
template = Template(tmpl.read()).render(data=node_exporter)
5558
out.write(template)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
type: txt
22
help: Maximum number of parallel scrape requests. Use 0 to disable.
3-
default: 40
3+
default: "40"

0 commit comments

Comments
 (0)