Skip to content

Commit cbd7fb4

Browse files
tdittrdavidv1992
authored andcommitted
Add documentation for observability
1 parent b9b1269 commit cbd7fb4

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- ---
2+
title: STATIME-METRICS-EXPORTER(8) statime 0.2.2 | statime
3+
--- -->
4+
5+
# NAME
6+
7+
`statime-metrics-exporter` - Prometheus/OpenMetrics exporter for the Statime PTP daemon
8+
9+
# SYNOPSIS
10+
`statime-metrics-exporter` [`-c` *path*] \
11+
`statime-metrics-exporter` `-h` \
12+
`statime-metrics-exporter` `-V`
13+
14+
# DESCRIPTION
15+
16+
...
17+
18+
# OPTIONS
19+
`-c` *path*, `--config`=*path*
20+
: Path to the configuration file for the statime daemon. If not specified this
21+
defaults to `/etc/statime/statime.toml`.
22+
23+
`-h`, `--help`
24+
: Display usage instructions.
25+
26+
`-V`, `--version`
27+
: Display version information.

docs/man/statime.toml.5.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,21 @@ will be indicated by each configuration setting shown.
9393

9494
`minor-ptp-version` = *version number* (**1**)
9595
: Set a different minor ptp version. Should be either 1 or 0, intended to work around misbehaving ptp 2.0 hardware
96+
97+
## `[observability]`
98+
99+
`observation-path` = *path* (**unset**)
100+
: Path where the daemon will create an observation Unix domain socket. This
101+
socket is used by `statime-metrics-exporter` to read the current
102+
status of the daemon. If not set (the default) no observation socket will be
103+
created, and it is not possible to use `statime-metrics-exporter` to
104+
observe the daemon.
105+
106+
`observation-permissions` = *mode* (**0o666**)
107+
: The file system permissions with which the observation socket should be
108+
created. Warning: You should always write this number with the octal prefix
109+
`0o`, otherwise your permissions might be interpreted wrongly. The default
110+
should be OK for most applications.
111+
112+
`metrics-exporter-listen` = *socketaddr* (**127.0.0.1:9975**)
113+
: The listen address that is used for the statime-metrics-exporter(8).

0 commit comments

Comments
 (0)