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:
# 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
prometheus_exporter:

View file

@ -275,7 +275,7 @@ open_telemetry:
http_request_duration:
# 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
prometheus_exporter:

View file

@ -41,9 +41,12 @@ describe('Open Telemetry', function () {
await server.run({
open_telemetry: {
metrics: {
enabled: true,
http_request_duration: {
enabled: true
}
}
}
})
// Simulate a HTTP request