From a19d991cfed98b91ee3853c6af000b7613107810 Mon Sep 17 00:00:00 2001 From: AJ Date: Fri, 10 May 2024 15:45:20 -0400 Subject: [PATCH] feat: add std out log exporter --- amqp.reflect/zilla.yaml | 4 ++ grpc.echo/zilla.yaml | 2 +- grpc.kafka.echo/zilla.yaml | 2 +- grpc.kafka.fanout/zilla.yaml | 2 +- grpc.kafka.proxy/zilla.yaml | 2 +- grpc.proxy/zilla.yaml | 2 +- http.echo.jwt/zilla.yaml | 4 ++ http.echo/zilla.yaml | 4 ++ .../www-updated/zilla.yaml | 4 ++ http.filesystem.config.server/www/zilla.yaml | 4 ++ .../zilla-config/zilla.yaml | 4 ++ http.filesystem/zilla.yaml | 4 ++ http.kafka.async/zilla.yaml | 4 ++ http.kafka.cache/zilla.yaml | 4 ++ http.kafka.crud/zilla.yaml | 4 ++ http.kafka.karapace/zilla.yaml | 4 ++ http.kafka.oneway/zilla.yaml | 4 ++ http.kafka.sasl.scram/zilla.yaml | 4 ++ http.kafka.sync/zilla.yaml | 27 ++++++----- http.proxy.schema.inline/zilla.yaml | 4 ++ http.proxy/zilla.yaml | 4 ++ http.redpanda.sasl.scram/zilla.yaml | 4 ++ kubernetes.prometheus.autoscale/zilla.yaml | 46 ++++++++++--------- mqtt.kafka.asyncapi.proxy/zilla.yaml | 2 +- mqtt.kafka.broker.jwt/zilla.yaml | 4 ++ mqtt.kafka.broker/zilla.yaml | 4 ++ mqtt.proxy.asyncapi/zilla.yaml | 2 +- openapi.proxy/zilla.yaml | 3 +- quickstart/zilla.yaml | 5 +- sse.kafka.fanout/zilla.yaml | 4 ++ sse.proxy.jwt/zilla.yaml | 4 ++ tcp.echo/zilla.yaml | 4 ++ tcp.reflect/zilla.yaml | 4 ++ tls.echo/zilla.yaml | 4 ++ tls.reflect/zilla.yaml | 4 ++ ws.echo/zilla.yaml | 4 ++ ws.reflect/zilla.yaml | 4 ++ 37 files changed, 156 insertions(+), 43 deletions(-) diff --git a/amqp.reflect/zilla.yaml b/amqp.reflect/zilla.yaml index 0c26b8a3..15b610d7 100644 --- a/amqp.reflect/zilla.yaml +++ b/amqp.reflect/zilla.yaml @@ -48,3 +48,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/grpc.echo/zilla.yaml b/grpc.echo/zilla.yaml index 0292faa9..0593425a 100644 --- a/grpc.echo/zilla.yaml +++ b/grpc.echo/zilla.yaml @@ -66,5 +66,5 @@ bindings: kind: server telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/grpc.kafka.echo/zilla.yaml b/grpc.kafka.echo/zilla.yaml index 8c539c2b..3039bcd9 100644 --- a/grpc.kafka.echo/zilla.yaml +++ b/grpc.kafka.echo/zilla.yaml @@ -96,5 +96,5 @@ bindings: kind: client telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/grpc.kafka.fanout/zilla.yaml b/grpc.kafka.fanout/zilla.yaml index b4c5288b..10cdd43f 100644 --- a/grpc.kafka.fanout/zilla.yaml +++ b/grpc.kafka.fanout/zilla.yaml @@ -88,5 +88,5 @@ bindings: kind: client telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/grpc.kafka.proxy/zilla.yaml b/grpc.kafka.proxy/zilla.yaml index 16708cda..4cfb3ba3 100644 --- a/grpc.kafka.proxy/zilla.yaml +++ b/grpc.kafka.proxy/zilla.yaml @@ -126,5 +126,5 @@ bindings: port: 8080 telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/grpc.proxy/zilla.yaml b/grpc.proxy/zilla.yaml index 372a8a7a..541e6b5e 100644 --- a/grpc.proxy/zilla.yaml +++ b/grpc.proxy/zilla.yaml @@ -78,5 +78,5 @@ bindings: port: 8080 telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/http.echo.jwt/zilla.yaml b/http.echo.jwt/zilla.yaml index f03091bf..c02ede74 100644 --- a/http.echo.jwt/zilla.yaml +++ b/http.echo.jwt/zilla.yaml @@ -73,3 +73,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.echo/zilla.yaml b/http.echo/zilla.yaml index f5bf3a65..6815285d 100644 --- a/http.echo/zilla.yaml +++ b/http.echo/zilla.yaml @@ -52,3 +52,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.filesystem.config.server/www-updated/zilla.yaml b/http.filesystem.config.server/www-updated/zilla.yaml index 6bb62d18..4a7f754f 100644 --- a/http.filesystem.config.server/www-updated/zilla.yaml +++ b/http.filesystem.config.server/www-updated/zilla.yaml @@ -54,3 +54,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.filesystem.config.server/www/zilla.yaml b/http.filesystem.config.server/www/zilla.yaml index 7bf4eff4..55c18e19 100644 --- a/http.filesystem.config.server/www/zilla.yaml +++ b/http.filesystem.config.server/www/zilla.yaml @@ -54,3 +54,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.filesystem.config.server/zilla-config/zilla.yaml b/http.filesystem.config.server/zilla-config/zilla.yaml index e22bfcb9..c6ace659 100644 --- a/http.filesystem.config.server/zilla-config/zilla.yaml +++ b/http.filesystem.config.server/zilla-config/zilla.yaml @@ -63,3 +63,7 @@ bindings: options: location: /var/www/ symlinks: follow +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.filesystem/zilla.yaml b/http.filesystem/zilla.yaml index 8773e095..c2f1af27 100644 --- a/http.filesystem/zilla.yaml +++ b/http.filesystem/zilla.yaml @@ -63,3 +63,7 @@ bindings: kind: server options: location: /var/www/ +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.async/zilla.yaml b/http.kafka.async/zilla.yaml index 82951c45..b8b7b0df 100644 --- a/http.kafka.async/zilla.yaml +++ b/http.kafka.async/zilla.yaml @@ -87,3 +87,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.cache/zilla.yaml b/http.kafka.cache/zilla.yaml index 69c8ce9a..9754f814 100644 --- a/http.kafka.cache/zilla.yaml +++ b/http.kafka.cache/zilla.yaml @@ -92,3 +92,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.crud/zilla.yaml b/http.kafka.crud/zilla.yaml index 43fa1638..c35fdf5a 100644 --- a/http.kafka.crud/zilla.yaml +++ b/http.kafka.crud/zilla.yaml @@ -116,3 +116,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.karapace/zilla.yaml b/http.kafka.karapace/zilla.yaml index 9d2afbf5..6496f298 100644 --- a/http.kafka.karapace/zilla.yaml +++ b/http.kafka.karapace/zilla.yaml @@ -141,3 +141,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.oneway/zilla.yaml b/http.kafka.oneway/zilla.yaml index c5f89c63..27b91a81 100644 --- a/http.kafka.oneway/zilla.yaml +++ b/http.kafka.oneway/zilla.yaml @@ -77,3 +77,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.sasl.scram/zilla.yaml b/http.kafka.sasl.scram/zilla.yaml index 9e91629b..4ab1de07 100644 --- a/http.kafka.sasl.scram/zilla.yaml +++ b/http.kafka.sasl.scram/zilla.yaml @@ -81,3 +81,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.kafka.sync/zilla.yaml b/http.kafka.sync/zilla.yaml index 3657ca80..d102f8a5 100644 --- a/http.kafka.sync/zilla.yaml +++ b/http.kafka.sync/zilla.yaml @@ -8,18 +8,6 @@ vaults: store: tls/localhost.p12 type: pkcs12 password: ${{env.KEYSTORE_PASSWORD}} -telemetry: - metrics: - - stream.active.received - - stream.active.sent - - stream.opens.received - - stream.opens.sent - - stream.data.received - - stream.data.sent - - stream.errors.received - - stream.errors.sent - - stream.closes.received - - stream.closes.sent bindings: north_tcp_server: type: tcp @@ -118,3 +106,18 @@ bindings: telemetry: metrics: - stream.* +telemetry: + metrics: + - stream.active.received + - stream.active.sent + - stream.opens.received + - stream.opens.sent + - stream.data.received + - stream.data.sent + - stream.errors.received + - stream.errors.sent + - stream.closes.received + - stream.closes.sent + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.proxy.schema.inline/zilla.yaml b/http.proxy.schema.inline/zilla.yaml index 69bdf428..02e06a9c 100644 --- a/http.proxy.schema.inline/zilla.yaml +++ b/http.proxy.schema.inline/zilla.yaml @@ -153,3 +153,7 @@ bindings: options: host: nginx port: 443 +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.proxy/zilla.yaml b/http.proxy/zilla.yaml index ceeb74ef..72754577 100644 --- a/http.proxy/zilla.yaml +++ b/http.proxy/zilla.yaml @@ -71,3 +71,7 @@ bindings: options: host: nginx port: 443 +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/http.redpanda.sasl.scram/zilla.yaml b/http.redpanda.sasl.scram/zilla.yaml index a3371d7b..ff9dfdd3 100644 --- a/http.redpanda.sasl.scram/zilla.yaml +++ b/http.redpanda.sasl.scram/zilla.yaml @@ -85,3 +85,7 @@ bindings: routes: - when: - cidr: 0.0.0.0/0 +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/kubernetes.prometheus.autoscale/zilla.yaml b/kubernetes.prometheus.autoscale/zilla.yaml index 35f6ef64..69e4d9f1 100644 --- a/kubernetes.prometheus.autoscale/zilla.yaml +++ b/kubernetes.prometheus.autoscale/zilla.yaml @@ -1,27 +1,5 @@ --- name: example -telemetry: - metrics: - - http.request.size - - http.response.size - - stream.active.received - - stream.active.sent - - stream.opens.received - - stream.opens.sent - - stream.data.received - - stream.data.sent - - stream.errors.received - - stream.errors.sent - - stream.closes.received - - stream.closes.sent - exporters: - prometheus_endpoint: - type: prometheus - options: - endpoints: - - scheme: http - path: /metrics - port: 7190 bindings: north_tcp_server: type: tcp @@ -52,3 +30,27 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + metrics: + - http.request.size + - http.response.size + - stream.active.received + - stream.active.sent + - stream.opens.received + - stream.opens.sent + - stream.data.received + - stream.data.sent + - stream.errors.received + - stream.errors.sent + - stream.closes.received + - stream.closes.sent + exporters: + stdout_logs_exporter: + type: stdout + prometheus_endpoint: + type: prometheus + options: + endpoints: + - scheme: http + path: /metrics + port: 7190 diff --git a/mqtt.kafka.asyncapi.proxy/zilla.yaml b/mqtt.kafka.asyncapi.proxy/zilla.yaml index 7603842f..e82a3ed0 100644 --- a/mqtt.kafka.asyncapi.proxy/zilla.yaml +++ b/mqtt.kafka.asyncapi.proxy/zilla.yaml @@ -89,5 +89,5 @@ bindings: version: latest telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/mqtt.kafka.broker.jwt/zilla.yaml b/mqtt.kafka.broker.jwt/zilla.yaml index e852b82e..14ee09ba 100644 --- a/mqtt.kafka.broker.jwt/zilla.yaml +++ b/mqtt.kafka.broker.jwt/zilla.yaml @@ -91,3 +91,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/mqtt.kafka.broker/zilla.yaml b/mqtt.kafka.broker/zilla.yaml index 0de73e19..04b21320 100644 --- a/mqtt.kafka.broker/zilla.yaml +++ b/mqtt.kafka.broker/zilla.yaml @@ -121,6 +121,10 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout vaults: my_servers: diff --git a/mqtt.proxy.asyncapi/zilla.yaml b/mqtt.proxy.asyncapi/zilla.yaml index 863c79ec..001b4d6c 100644 --- a/mqtt.proxy.asyncapi/zilla.yaml +++ b/mqtt.proxy.asyncapi/zilla.yaml @@ -34,5 +34,5 @@ bindings: port: ${{env.MOSQUITTO_BROKER_PORT}} telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout diff --git a/openapi.proxy/zilla.yaml b/openapi.proxy/zilla.yaml index b9e30b8d..adb66489 100644 --- a/openapi.proxy/zilla.yaml +++ b/openapi.proxy/zilla.yaml @@ -35,5 +35,6 @@ bindings: - 5000 telemetry: exporters: - stdout_exporter: + stdout_logs_exporter: type: stdout + diff --git a/quickstart/zilla.yaml b/quickstart/zilla.yaml index 973f752d..5342db10 100644 --- a/quickstart/zilla.yaml +++ b/quickstart/zilla.yaml @@ -303,8 +303,11 @@ telemetry: - grpc.requests.per.rpc - grpc.responses.per.rpc - # Prometheus endpoint definition exporters: + # Enable Standard Out logs + stdout_logs_exporter: + type: stdout + # Prometheus endpoint definition prometheus_metric_exporter: type: prometheus options: diff --git a/sse.kafka.fanout/zilla.yaml b/sse.kafka.fanout/zilla.yaml index 3e8af4d4..0ef42479 100644 --- a/sse.kafka.fanout/zilla.yaml +++ b/sse.kafka.fanout/zilla.yaml @@ -110,3 +110,7 @@ bindings: south_tcp_client: type: tcp kind: client +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/sse.proxy.jwt/zilla.yaml b/sse.proxy.jwt/zilla.yaml index b368af29..b75506c0 100644 --- a/sse.proxy.jwt/zilla.yaml +++ b/sse.proxy.jwt/zilla.yaml @@ -113,3 +113,7 @@ bindings: options: host: sse-server port: 8001 +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/tcp.echo/zilla.yaml b/tcp.echo/zilla.yaml index a6c54e33..73ad34a1 100644 --- a/tcp.echo/zilla.yaml +++ b/tcp.echo/zilla.yaml @@ -11,3 +11,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/tcp.reflect/zilla.yaml b/tcp.reflect/zilla.yaml index 57220f07..edca98fa 100644 --- a/tcp.reflect/zilla.yaml +++ b/tcp.reflect/zilla.yaml @@ -15,3 +15,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/tls.echo/zilla.yaml b/tls.echo/zilla.yaml index e28bfba3..29c939f7 100644 --- a/tls.echo/zilla.yaml +++ b/tls.echo/zilla.yaml @@ -34,3 +34,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/tls.reflect/zilla.yaml b/tls.reflect/zilla.yaml index 0c7dc8ae..2e5ef0f1 100644 --- a/tls.reflect/zilla.yaml +++ b/tls.reflect/zilla.yaml @@ -38,3 +38,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/ws.echo/zilla.yaml b/ws.echo/zilla.yaml index 67ee4605..d8f75040 100644 --- a/ws.echo/zilla.yaml +++ b/ws.echo/zilla.yaml @@ -58,3 +58,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout diff --git a/ws.reflect/zilla.yaml b/ws.reflect/zilla.yaml index 44c4588a..2ee3e26b 100644 --- a/ws.reflect/zilla.yaml +++ b/ws.reflect/zilla.yaml @@ -62,3 +62,7 @@ bindings: north_echo_server: type: echo kind: server +telemetry: + exporters: + stdout_logs_exporter: + type: stdout