1
0
Fork 0

Disable http metrics by default

Can lead to performance issues on prometheus side and peertube side if
many different URLs have been called on peertube side (google indexation
for example)
This commit is contained in:
Chocobozzz 2024-03-19 14:52:41 +01:00
parent 41fd9435a6
commit 302fd93c49
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 6 additions and 3 deletions

View file

@ -277,7 +277,7 @@ open_telemetry:
http_request_duration: http_request_duration:
# You can disable HTTP request duration metric that can have a high tag cardinality # You can disable HTTP request duration metric that can have a high tag cardinality
enabled: true enabled: false
# Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics
prometheus_exporter: prometheus_exporter:

View file

@ -275,7 +275,7 @@ open_telemetry:
http_request_duration: http_request_duration:
# You can disable HTTP request duration metric that can have a high tag cardinality # You can disable HTTP request duration metric that can have a high tag cardinality
enabled: true enabled: false
# Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics
prometheus_exporter: prometheus_exporter:

View file

@ -41,7 +41,10 @@ describe('Open Telemetry', function () {
await server.run({ await server.run({
open_telemetry: { open_telemetry: {
metrics: { metrics: {
enabled: true enabled: true,
http_request_duration: {
enabled: true
}
} }
} }
}) })