Skip to content

Commit

Permalink
T973: remove irrelevant standard values
Browse files Browse the repository at this point in the history
  • Loading branch information
rebortg committed Oct 3, 2024
1 parent a0c15a1 commit 4903b66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
9 changes: 6 additions & 3 deletions data/templates/node_exporter/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ After=network.target
User=node_exporter
{% endif %}
ExecStart={{ vrf_command }}/usr/sbin/node_exporter \
{% for address in listen_address %}
{% if listen_address is vyos_defined %}
{% for address in listen_address %}
--web.listen-address={{ address }}:{{ port }}
{% endfor %}

{% endfor %}
{% else %}
--web.listen-address=:{{ port }}
{% endif %}
[Install]
WantedBy=multi-user.target
3 changes: 0 additions & 3 deletions interface-definitions/service_monitoring_node_exporter.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
</properties>
<children>
#include <include/listen-address.xml.i>
<leafNode name="listen-address">
<defaultValue>0.0.0.0</defaultValue>
</leafNode>
#include <include/port-number.xml.i>
<leafNode name="port">
<defaultValue>9100</defaultValue>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (C) 2020-2024 VyOS maintainers and contributors
# Copyright (C) 2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
Expand Down
4 changes: 1 addition & 3 deletions src/conf_mode/service_monitoring_node-exporter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (C) 2021-2024 VyOS maintainers and contributors
# Copyright (C) 2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
Expand Down Expand Up @@ -89,8 +89,6 @@ def apply(config_data):

call(f'systemctl {systemd_action} {systemd_service}')

# Telegraf include custom rsyslog config changes
call('systemctl reload-or-restart rsyslog')


if __name__ == '__main__':
Expand Down

0 comments on commit 4903b66

Please sign in to comment.