Skip to content

Commit

Permalink
introduced Objects as list in metrics yaml
Browse files Browse the repository at this point in the history
Signed-off-by: adarsh0728 <[email protected]>
  • Loading branch information
adarsh0728 committed Jan 23, 2025
2 parents d137017 + 93bf8f8 commit cf1127c
Show file tree
Hide file tree
Showing 68 changed files with 2,474 additions and 1,336 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

steps:
- name: Start Pulsar standalone container
run: docker run -d -p 6650:6650 -p 8080:8080 apachepulsar/pulsar:4.0.0 bin/pulsar standalone
run: docker run -d -p 6650:6650 -p 8080:8080 apachepulsar/pulsar:4.0.0 bin/pulsar standalone

- name: Set up Go 1.x
uses: actions/setup-go@v5
Expand Down Expand Up @@ -184,8 +184,11 @@ jobs:
run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu
- name: Rename binary
run: cp -pv target/x86_64-unknown-linux-gnu/release/numaflow ./numaflow-rs-linux-amd64
- name: List files
run: pwd && ls -al && file ./numaflow-rs-linux-amd64
- name: Verfiy binary is Statically Linked
run: |
pwd && ls -al
file ./numaflow-rs-linux-amd64
file ./numaflow-rs-linux-amd64 | grep -q 'static-pie linked'
- name: Upload numaflow binary
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN chmod +x /bin/numaflow-rs
####################################################################################################
# Rust binary
####################################################################################################
FROM lukemathwalker/cargo-chef:latest-rust-1.82 AS chef
FROM lukemathwalker/cargo-chef:latest-rust-1.84 AS chef
ARG TARGETPLATFORM
WORKDIR /numaflow
RUN apt-get update && apt-get install -y protobuf-compiler
Expand Down
225 changes: 111 additions & 114 deletions config/advanced-install/namespaced-numaflow-server.yaml

Large diffs are not rendered by default.

225 changes: 111 additions & 114 deletions config/advanced-install/numaflow-server.yaml

Large diffs are not rendered by default.

112 changes: 35 additions & 77 deletions config/base/numaflow-server/numaflow-server-metrics-proxy-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data:
metrics:
- metric_name: vertex_pending_messages
display_name: Vertex Pending Messages
metric_description: This gauge metric keeps track of the total number of messages that are waiting to be processed over varying time frames of 1min, 5min, 15min and default period of 2min.
# set "Units" or unset for default behaviour
# unit: Units
required_filters:
Expand Down Expand Up @@ -58,7 +59,8 @@ data:
required: false
metrics:
- metric_name: monovtx_pending
display_name: Mono Vertex Pending Messages
display_name: MonoVertex Pending Messages
metric_description: This gauge metric keeps track of the total number of messages that are waiting to be processed over varying time frames of 1min, 5min, 15min and default period of 2min.
# set "Units" or unset for default behaviour
# unit: Units
required_filters:
Expand Down Expand Up @@ -97,7 +99,8 @@ data:
required: false
metrics:
- metric_name: monovtx_processing_time_bucket
display_name: Mono Vertex Processing Time Latency
display_name: MonoVertex Processing Time Latency
metric_description: This metric represents a histogram to keep track of the total time taken to forward a chunk of messages.
# set "Units" or unset for default behaviour otherwise set "s" or "ms" for latency metrics
# Note: latency values are in μs
# unit: s
Expand All @@ -111,7 +114,8 @@ data:
- name: pod
required: false
- metric_name: monovtx_sink_time_bucket
display_name: Mono Vertex Sink Write Time Latency
display_name: MonoVertex Sink Write Time Latency
metric_description: This metric represents a histogram to keep track of the total time taken to write to the Sink.
# set "Units" or unset for default behaviour otherwise set "s" or "ms" for latency metrics
# Note: latency values are in μs
# unit: ms
Expand Down Expand Up @@ -140,6 +144,7 @@ data:
metrics:
- metric_name: forwarder_data_read_total
display_name: Vertex Read Processing Rate
metric_description: This metric represents the total number of data messages read per second.
# set "Units" or unset for default behaviour
# unit: Units
required_filters:
Expand All @@ -155,8 +160,8 @@ data:
- name: mono_vertex_throughput
object: mono-vertex
title: Mono-Vertex Throughput and Message Rates
description: This pattern measures the throughput of a mono-vertex in messages per second across different dimensions
title: MonoVertex Throughput and Message Rates
description: This pattern measures the throughput of a MonoVertex in messages per second across different dimensions.
expr: sum(rate($metric_name{$filters}[$duration])) by ($dimension)
params:
- name: duration
Expand All @@ -167,7 +172,8 @@ data:
required: false
metrics:
- metric_name: monovtx_read_total
display_name: Mono Vertex Read Processing Rate
display_name: MonoVertex Read Processing Rate
metric_description: This metric represents the total number of data messages read per second.
# set "Units" or unset for default behaviour
# unit: Units
required_filters:
Expand All @@ -179,8 +185,10 @@ data:
filters:
- name: pod
required: false
- name: mono_vertex_pod_cpu_memory_utilization
object: mono-vertex
- name: pod_cpu_memory_utilization
objects:
- mono-vertex
- vertex
title: cpu-memory utilization by pod
description: cpu and memory utilization by pod for mono-vertex
expr: avg_over_time($metric_name{$filters}[$duration])
Expand All @@ -196,6 +204,7 @@ data:
- metric_name: namespace_pod_cpu_utilization
# set display name as per metric name
display_name: CPU Utilization per Pod
metric_description: This metric represents the percentage utilization of cpu usage over cpu resource limits for a pod.
required_filters:
- namespace
- pod
Expand All @@ -206,63 +215,37 @@ data:
# expr: optional expression for prometheus query
# overrides the default expression
required: false
# set your memory metric name here
- metric_name: namespace_pod_memory_utilization
# set display name as per metric name
display_name: Memory Utilization per Pod
required_filters:
- namespace
- pod
dimensions:
- name: mono-vertex
- name: vertex
filters:
- name: pod
# expr: optional expression for prometheus query
# overrides the default expression
required: false
- name: pipeline_vertex_pod_cpu_memory_utilization
object: vertex
title: cpu-memory utilization by pod
description: cpu and memory utilization by pod for pipeline's vertex
expr: avg_over_time($metric_name{$filters}[$duration])
params:
- name: duration
required: true
- name: start_time
required: false
- name: end_time
required: false
metrics:
# set your cpu metric name here
- metric_name: namespace_pod_cpu_utilization
# set your memory metric name here
- metric_name: namespace_pod_memory_utilization
# set display name as per metric name
display_name: CPU Utilization per Pod
display_name: Memory Utilization per Pod
metric_description: This metric represents the percentage utilization of memory usage in bytes over memory resource limits for a pod.
required_filters:
- namespace
- pod
dimensions:
- name: vertex
- name: mono-vertex
filters:
- name: pod
# expr: optional expression for prometheus query
# overrides the default expression
required: false
# set your memory metric name here
- metric_name: namespace_pod_memory_utilization
# set display name as per metric name
display_name: Memory Utilization per Pod
required_filters:
- namespace
- pod
dimensions:
- name: vertex
filters:
- name: pod
# expr: optional expression for prometheus query
# overrides the default expression
required: false
- name: mono_vertex_container_cpu_memory_utilization
object: mono-vertex
- name: container_cpu_memory_utilization
objects:
- mono-vertex
- vertex
title: cpu-memory utilization by container for mono-vertex
description: cpu and memory utilization by container for mono-vertex
expr: avg_over_time($metric_name{$filters}[$duration])
Expand All @@ -278,6 +261,7 @@ data:
- metric_name: namespace_app_container_cpu_utilization
# set display name as per metric name
display_name: CPU Utilization per Container
metric_description: This metric represents the percentage utilization of cpu usage over cpu resource limits for a container.
required_filters:
- namespace
dimensions:
Expand All @@ -287,52 +271,26 @@ data:
# expr: optional expression for prometheus query
# overrides the default expression
required: false
# set your memory metric name here
- metric_name: namespace_app_container_memory_utilization
# set display name as per metric name
display_name: Memory Utilization per Container
required_filters:
- namespace
dimensions:
- name: mono-vertex
filters:
- name: vertex
filters:
- name: container
# expr: optional expression for prometheus query
# overrides the default expression
required: false
- name: pipeline_vertex_container_cpu_memory_utilization
object: vertex
title: cpu-memory utilization by container
description: cpu and memory utilization by container for pipeline's vertex
expr: avg_over_time($metric_name{$filters}[$duration])
params:
- name: duration
required: true
- name: start_time
required: false
- name: end_time
required: false
metrics:
# set your cpu metric name here
- metric_name: namespace_app_container_cpu_utilization
# set your memory metric name here
- metric_name: namespace_app_container_memory_utilization
# set display name as per metric name
display_name: CPU Utilization per Container
display_name: Memory Utilization per Container
metric_description: This metric represents the percentage utilization of memory usage in bytes over memory resource limits for a container.
required_filters:
- namespace
dimensions:
- name: vertex
- name: mono-vertex
filters:
- name: container
# expr: optional expression for prometheus query
# overrides the default expression
required: false
# set your memory metric name here
- metric_name: namespace_app_container_memory_utilization
# set display name as per metric name
display_name: Memory Utilization per Container
required_filters:
- namespace
dimensions:
- name: vertex
filters:
- name: container
Expand Down
Loading

0 comments on commit cf1127c

Please sign in to comment.