diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 13:56:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 13:56:04 +0100 |
commit | 31a9ed960ff1013940d677cb56f83ecd90a93e26 (patch) | |
tree | 33eb418727a762793a62839fb8d039b96e5b9c9b /config | |
parent | 077600e03774203c57ba7e8b122bd18faa3e51e6 (diff) | |
download | PeerTube-31a9ed960ff1013940d677cb56f83ecd90a93e26.tar.gz PeerTube-31a9ed960ff1013940d677cb56f83ecd90a93e26.tar.zst PeerTube-31a9ed960ff1013940d677cb56f83ecd90a93e26.zip |
Add configuration for prometheus exporter hostname
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 4 | ||||
-rw-r--r-- | config/production.yaml.example | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/config/default.yaml b/config/default.yaml index a916b1dc3..19e2fcf3a 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -209,13 +209,15 @@ log: | |||
209 | # Accept warn/error logs coming from the client | 209 | # Accept warn/error logs coming from the client |
210 | accept_client_log: true | 210 | accept_client_log: true |
211 | 211 | ||
212 | # Highly experimental support of Open Telemetry | 212 | # Support of Open Telemetry metrics and tracing |
213 | # For more information: https://docs.joinpeertube.org/maintain-observability | ||
213 | open_telemetry: | 214 | open_telemetry: |
214 | metrics: | 215 | metrics: |
215 | enabled: false | 216 | enabled: false |
216 | 217 | ||
217 | # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics | 218 | # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics |
218 | prometheus_exporter: | 219 | prometheus_exporter: |
220 | hostname: '127.0.0.1' | ||
219 | port: 9091 | 221 | port: 9091 |
220 | 222 | ||
221 | tracing: | 223 | tracing: |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 100bc7948..da067b3b5 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -207,13 +207,15 @@ log: | |||
207 | # Accept warn/error logs coming from the client | 207 | # Accept warn/error logs coming from the client |
208 | accept_client_log: true | 208 | accept_client_log: true |
209 | 209 | ||
210 | # Highly experimental support of Open Telemetry | 210 | # Support of Open Telemetry metrics and tracing |
211 | # For more information: https://docs.joinpeertube.org/maintain-observability | ||
211 | open_telemetry: | 212 | open_telemetry: |
212 | metrics: | 213 | metrics: |
213 | enabled: false | 214 | enabled: false |
214 | 215 | ||
215 | # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics | 216 | # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics |
216 | prometheus_exporter: | 217 | prometheus_exporter: |
218 | hostname: '127.0.0.1' | ||
217 | port: 9091 | 219 | port: 9091 |
218 | 220 | ||
219 | tracing: | 221 | tracing: |