This commit is contained in:
squahtx 2022-10-07 13:54:53 +00:00
parent a97d6334ed
commit 101d2f2cbb
4 changed files with 60 additions and 26 deletions

View file

@ -163,12 +163,19 @@ set to <code>True</code>.</p>
collect data:</p> collect data:</p>
<p>There are two methods of enabling the metrics endpoint in Synapse.</p> <p>There are two methods of enabling the metrics endpoint in Synapse.</p>
<p>The first serves the metrics as a part of the usual web server and <p>The first serves the metrics as a part of the usual web server and
can be enabled by adding the &quot;metrics&quot; resource to the existing can be enabled by adding the <code>metrics</code> resource to the existing
listener as such:</p> listener as such as in this example:</p>
<pre><code class="language-yaml"> resources: <pre><code class="language-yaml">listeners:
- names: - port: 8008
- client tls: false
- metrics type: http
x_forwarded: true
bind_addresses: ['::1', '127.0.0.1']
resources:
# added &quot;metrics&quot; in this line
- names: [client, federation, metrics]
compress: false
</code></pre> </code></pre>
<p>This provides a simple way of adding metrics to your Synapse <p>This provides a simple way of adding metrics to your Synapse
installation, and serves under <code>/_synapse/metrics</code>. If you do not installation, and serves under <code>/_synapse/metrics</code>. If you do not
@ -179,12 +186,22 @@ different thread to Synapse. This can make it more resilient to
heavy load meaning metrics cannot be retrieved, and can be exposed heavy load meaning metrics cannot be retrieved, and can be exposed
to just internal networks easier. The served metrics are available to just internal networks easier. The served metrics are available
over HTTP only, and will be available at <code>/_synapse/metrics</code>.</p> over HTTP only, and will be available at <code>/_synapse/metrics</code>.</p>
<p>Add a new listener to homeserver.yaml:</p> <p>Add a new listener to homeserver.yaml as in this example:</p>
<pre><code class="language-yaml"> listeners: <pre><code class="language-yaml">listeners:
- type: metrics - port: 8008
port: 9000 tls: false
bind_addresses: type: http
- '0.0.0.0' x_forwarded: true
bind_addresses: ['::1', '127.0.0.1']
resources:
- names: [client, federation]
compress: false
# beginning of the new metrics listener
- port: 9000
type: metrics
bind_addresses: ['::1', '127.0.0.1']
</code></pre> </code></pre>
</li> </li>
<li> <li>

View file

@ -13729,12 +13729,19 @@ set to <code>True</code>.</p>
collect data:</p> collect data:</p>
<p>There are two methods of enabling the metrics endpoint in Synapse.</p> <p>There are two methods of enabling the metrics endpoint in Synapse.</p>
<p>The first serves the metrics as a part of the usual web server and <p>The first serves the metrics as a part of the usual web server and
can be enabled by adding the &quot;metrics&quot; resource to the existing can be enabled by adding the <code>metrics</code> resource to the existing
listener as such:</p> listener as such as in this example:</p>
<pre><code class="language-yaml"> resources: <pre><code class="language-yaml">listeners:
- names: - port: 8008
- client tls: false
- metrics type: http
x_forwarded: true
bind_addresses: ['::1', '127.0.0.1']
resources:
# added &quot;metrics&quot; in this line
- names: [client, federation, metrics]
compress: false
</code></pre> </code></pre>
<p>This provides a simple way of adding metrics to your Synapse <p>This provides a simple way of adding metrics to your Synapse
installation, and serves under <code>/_synapse/metrics</code>. If you do not installation, and serves under <code>/_synapse/metrics</code>. If you do not
@ -13745,12 +13752,22 @@ different thread to Synapse. This can make it more resilient to
heavy load meaning metrics cannot be retrieved, and can be exposed heavy load meaning metrics cannot be retrieved, and can be exposed
to just internal networks easier. The served metrics are available to just internal networks easier. The served metrics are available
over HTTP only, and will be available at <code>/_synapse/metrics</code>.</p> over HTTP only, and will be available at <code>/_synapse/metrics</code>.</p>
<p>Add a new listener to homeserver.yaml:</p> <p>Add a new listener to homeserver.yaml as in this example:</p>
<pre><code class="language-yaml"> listeners: <pre><code class="language-yaml">listeners:
- type: metrics - port: 8008
port: 9000 tls: false
bind_addresses: type: http
- '0.0.0.0' x_forwarded: true
bind_addresses: ['::1', '127.0.0.1']
resources:
- names: [client, federation]
compress: false
# beginning of the new metrics listener
- port: 9000
type: metrics
bind_addresses: ['::1', '127.0.0.1']
</code></pre> </code></pre>
</li> </li>
<li> <li>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long