Skip to content

Commit 2ba73fd

Browse files
Merge branch 'chore/php84-support' of https://github.com/LaravelFreelancerNL/arangodb-php-client into 34-add-getcurrentconnections-to-monitoring-manager
# Conflicts: # src/Monitor/MonitorManager.php
2 parents 0b1a548 + 3e06104 commit 2ba73fd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/monitor-manager.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ Get Prometheus metrics of the server
1010

1111
```
1212
$arangoClient->monitor()->getMetrics();
13-
```
13+
```
14+
15+
16+
### getCurrentConnections(): int
17+
Get the total number of active connections (HTTP/1.1 & HTTP/2 combined)
18+
19+
```
20+
$arangoClient->monitor()->getCurrentConnections();
21+
```

src/Monitor/MonitorManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ public function getCurrentConnections(): int
2424

2525
return $metrics->arangodb_http1_connections_total->value + $metrics->arangodb_http2_connections_total->value;
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)