<linkrel="prev"title="prometheus.prometheus.snmp_exporter role – Prometheus SNMP exporter"href="snmp_exporter_role.html"/><!-- extra head elements for Ansible beyond RTD Sphinx Theme -->
</head>
<bodyclass="wy-body-for-nav"><!-- extra body elements for Ansible beyond RTD Sphinx Theme -->
<liclass="toctree-l1"><aclass="reference internal"href="alertmanager_role.html">prometheus.prometheus.alertmanager role – Prometheus Alertmanager service</a></li>
<liclass="toctree-l1"><aclass="reference internal"href="blackbox_exporter_role.html">prometheus.prometheus.blackbox_exporter role – Deploy and manage Prometheus blackbox exporter</a></li>
<liclass="toctree-l1"><aclass="reference internal"href="mysqld_exporter_role.html">prometheus.prometheus.mysqld_exporter role – Prometheus MySQLd Exporter</a></li>
<liclass="toctree-l1"><aclass="reference internal"href="node_exporter_role.html">prometheus.prometheus.node_exporter role – Prometheus Node Exporter</a></li>
<liclass="toctree-l1"><aclass="reference internal"href="prometheus_role.html">prometheus.prometheus.prometheus role – Installs and configures prometheus</a></li>
<liclass="toctree-l1"><aclass="reference internal"href="snmp_exporter_role.html">prometheus.prometheus.snmp_exporter role – Prometheus SNMP exporter</a></li>
<liclass="toctree-l1 current"><aclass="current reference internal"href="#">prometheus.prometheus.systemd_exporter role – Prometheus Systemd Exporter</a><ul>
<liclass="toctree-l2"><aclass="reference internal"href="#entry-point-main-prometheus-systemd-exporter">Entry point <codeclass="docutils literal notranslate"><spanclass="pre">main</span></code>– Prometheus Systemd Exporter</a><ul>
<h1>prometheus.prometheus.systemd_exporter role – Prometheus Systemd Exporter<aclass="headerlink"href="#prometheus-prometheus-systemd-exporter-role-prometheus-systemd-exporter"title="Permalink to this heading"></a></h1>
<p>This role is part of the <aclass="reference external"href="https://galaxy.ansible.com/prometheus/prometheus">prometheus.prometheus collection</a> (version 0.6.0).</p>
<p>To install it use: <codeclass="code docutils literal notranslate"><spanclass="pre">ansible-galaxy</span><spanclass="pre">collection</span><spanclass="pre">install</span><spanclass="pre">prometheus.prometheus</span></code>.</p>
<p>To use it in a playbook, specify: <codeclass="code docutils literal notranslate"><spanclass="pre">prometheus.prometheus.systemd_exporter</span></code>.</p>
</div>
<navclass="contents local"id="contents">
<ulclass="simple">
<li><p><aclass="reference internal"href="#entry-point-main-prometheus-systemd-exporter"id="id1">Entry point <codeclass="docutils literal notranslate"><spanclass="pre">main</span></code>– Prometheus Systemd Exporter</a></p>
<h2><aclass="toc-backref"href="#id1"role="doc-backlink">Entry point <codeclass="docutils literal notranslate"><spanclass="pre">main</span></code>– Prometheus Systemd Exporter</a><aclass="headerlink"href="#entry-point-main-prometheus-systemd-exporter"title="Permalink to this heading"></a></h2>
<sectionid="synopsis">
<h3><aclass="toc-backref"href="#id2"role="doc-backlink">Synopsis</a><aclass="headerlink"href="#synopsis"title="Permalink to this heading"></a></h3>
<h3><aclass="toc-backref"href="#id3"role="doc-backlink">Parameters</a><aclass="headerlink"href="#parameters"title="Permalink to this heading"></a></h3>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_binary_install_dir"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_binary_local_dir"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>Allows to use local packages instead of ones distributed on github.</p>
<p>As parameter it takes a directory where <codeclass="docutils literal notranslate"><spanclass="pre">systemd_exporter</span></code> binary is stored on host on which ansible is run.</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_binary_url"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>URL of the systemd exporter binaries .tar.gz file”</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_checksums_url"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>URL of the systemd exporter checksums file</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_enable_file_descriptor_size"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">boolean</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>Enables file descriptor size metrics. This feature will cause exporter to run as root as it needs access to /proc/X/fd”</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_enable_ip_accounting"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">boolean</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>Enables service ip accounting metrics. This feature only works with systemd 235 and above”</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_enable_restart_count"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">boolean</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>Enables service restart count metrics. This feature only works with systemd 235 and above”</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_skip_install"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">boolean</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>SystemD exporter installation tasks gets skipped when set to true.</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_system_group"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_system_user"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_unit_exclude"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
<td><divclass="ansible-option-cell"><p>Exclude some systemd units. Expects a regex. More in <aclass="reference external"href="https://github.com/prometheus-community/systemd_exporter#configuration">systemd_exporter docs</a>.</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_unit_include"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
<td><divclass="ansible-option-cell"><p>Include some systemd units. Expects a regex. More in <aclass="reference external"href="https://github.com/prometheus-community/systemd_exporter#configuration">systemd_exporter docs</a>.</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_version"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>SystemD exporter package version. Also accepts latest as parameter.</p>
<aclass="ansibleOptionLink"href="#parameter-main--systemd_exporter_web_listen_address"title="Permalink to this option"></a><pclass="ansible-option-type-line"><spanclass="ansible-option-type">string</span></p>
</div></td>
<td><divclass="ansible-option-cell"><p>Address on which systemd exporter will listen”</p>