Skip to content

Commit beb1b32

Browse files
djklim87djklim87
andauthored
Feat/537 add prometheus exporter support (#553)
* Feat: Prometheus exporter plugin Ref: #537 --------- Co-authored-by: djklim87 <[email protected]>
1 parent a1d410d commit beb1b32

File tree

6 files changed

+1027
-10
lines changed

6 files changed

+1027
-10
lines changed

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Network/EventHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public static function process(string $id, string $payload): Response {
113113
$message = match ($outputFormat) {
114114
// TODO: Maybe later we can use meta for time, but not now cuz no time for non select
115115
OutputFormat::Table => $result->getTableFormatted($startTime),
116+
OutputFormat::Plain => $result->toString(),
116117
default => $result->getStruct(),
117118
};
118119
$response = Response::fromMessageAndMeta(

src/Plugin/EmptyString/Payload.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static function fromRequest(Request $request): static {
5050
public static function hasMatch(Request $request): bool {
5151
$payload = strtolower($request->payload);
5252
if ($request->payload === ''
53+
&& $request->endpointBundle !== Endpoint::Metrics
5354
&& $request->endpointBundle !== Endpoint::Bulk
5455
&& $request->endpointBundle !== Endpoint::Elastic) {
5556
return true;

0 commit comments

Comments
 (0)