Added exporter for Grandmaster, borderClocl and client clock
This commit is contained in:
22
exporters/systemd/nexus-ptp-exporter.service
Normal file
22
exporters/systemd/nexus-ptp-exporter.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Prometheus exporter for NYATER Nexus PTP
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ptp-exporter
|
||||
Group=ptp-exporter
|
||||
EnvironmentFile=-/etc/default/nexus-ptp-exporter
|
||||
ExecStart=/opt/ptp-exporter/venv/bin/python /opt/ptp-exporter/nexus_ptp_exporter.py \
|
||||
--host ${NEXUS_HOST} \
|
||||
--target-name ${NEXUS_NAME} \
|
||||
--username ${NEXUS_USER} \
|
||||
--key-file ${NEXUS_KEY_FILE} \
|
||||
--listen 0.0.0.0 \
|
||||
--port 9560
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
24
exporters/systemd/ptp-exporter-boundary.service
Normal file
24
exporters/systemd/ptp-exporter-boundary.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Prometheus exporter for Linux PTP boundary clock
|
||||
After=network-online.target ptp4l-boundary.service phc2sys-boundary.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ptp-exporter
|
||||
Group=ptp-exporter
|
||||
SupplementaryGroups=systemd-journal
|
||||
RuntimeDirectory=ptp-exporter
|
||||
RuntimeDirectoryMode=0750
|
||||
ExecStart=/opt/ptp-exporter/venv/bin/python /opt/ptp-exporter/linux_ptp_exporter.py \
|
||||
--role boundary \
|
||||
--listen 0.0.0.0 \
|
||||
--port 9559 \
|
||||
--uds /var/run/ptp4lro \
|
||||
--ptp4l-service ptp4l-boundary.service \
|
||||
--phc2sys-service phc2sys-boundary.service
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
24
exporters/systemd/ptp-exporter-client.service
Normal file
24
exporters/systemd/ptp-exporter-client.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Prometheus exporter for Linux PTP client
|
||||
After=network-online.target ptp4l-client.service phc2sys-client.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ptp-exporter
|
||||
Group=ptp-exporter
|
||||
SupplementaryGroups=systemd-journal
|
||||
RuntimeDirectory=ptp-exporter
|
||||
RuntimeDirectoryMode=0750
|
||||
ExecStart=/opt/ptp-exporter/venv/bin/python /opt/ptp-exporter/linux_ptp_exporter.py \
|
||||
--role client \
|
||||
--listen 0.0.0.0 \
|
||||
--port 9559 \
|
||||
--uds /var/run/ptp4lro \
|
||||
--ptp4l-service ptp4l-client.service \
|
||||
--phc2sys-service phc2sys-client.service
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
25
exporters/systemd/ptp-exporter-grandmaster.service
Normal file
25
exporters/systemd/ptp-exporter-grandmaster.service
Normal file
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Prometheus exporter for PTP grandmaster
|
||||
After=network-online.target ptp4l-gm.service phc2sys-gm.service chrony.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ptp-exporter
|
||||
Group=ptp-exporter
|
||||
SupplementaryGroups=systemd-journal
|
||||
RuntimeDirectory=ptp-exporter
|
||||
RuntimeDirectoryMode=0750
|
||||
ExecStart=/opt/ptp-exporter/venv/bin/python /opt/ptp-exporter/linux_ptp_exporter.py \
|
||||
--role grandmaster \
|
||||
--listen 0.0.0.0 \
|
||||
--port 9559 \
|
||||
--uds /var/run/ptp4lro \
|
||||
--chrony \
|
||||
--ptp4l-service ptp4l-gm.service \
|
||||
--phc2sys-service phc2sys-gm.service
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user