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:
parent
41fd9435a6
commit
302fd93c49
3 changed files with 6 additions and 3 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue