mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
journald now implements io.systemd.Metrics on /run/systemd/report/io.systemd.JournalDaemon, via the new systemd-journald-metrics.socket, and reports the message counters as io.systemd.JournalDaemon.MessagesByPriority (field priority=) and io.systemd.JournalDaemon.MessagesByTransport (field transport=). Metrics requests are processed at a lower event loop priority than incoming log messages. For now only the main journald instance provides metrics, not the namespace instances. Like the audit socket, the metrics socket is not listed in Sockets= of the service, so that it can be disabled.
27 lines
742 B
SYSTEMD
27 lines
742 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Journal Metrics Varlink Socket
|
|
Documentation=man:systemd-journald.service(8)
|
|
DefaultDependencies=no
|
|
Before=sockets.target
|
|
IgnoreOnIsolate=yes
|
|
|
|
[Socket]
|
|
Service=systemd-journald.service
|
|
ListenStream=/run/systemd/report/io.systemd.JournalDaemon
|
|
SocketMode=0666
|
|
DeferTrigger=yes
|
|
XAttrEntryPoint=user.varlink=entrypoint
|
|
XAttrListen=user.varlink=listen
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|