apiVersion: numaflow.numaproj.io/v1alpha1 kind: Pipeline metadata: name: numalogic-prometheus-pipeline spec: limits: readBatchSize: 10 bufferMaxLength: 1000 bufferUsageLimit: 100 vertices: - name: input source: http: service: true - name: decode scale: min: 1 max: 1 udf: container: image: quay.io/numaio/numalogic-prometheus/udf/prometheus-serde:v0.1.5 env: - name: NUMAFLOW_DEBUG value: "true" - name: filter scale: min: 1 max: 1 udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.1a0 args: - python - starter.py - udf - metric_filter env: - name: DEBUG value: "true" - name: window scale: min: 1 max: 1 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.1a0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udf - window env: - name: REDIS_HOST value: numalogic-redis-cluster.numalogic-prometheus.svc.cluster.local - name: REDIS_PORT value: "6379" - name: REDIS_AUTH value: "5rmmfXtsbL" - name: DEBUG value: "true" limits: readBatchSize: 1 - name: preprocess scale: min: 1 max: 5 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udf - preprocess env: - name: DEBUG value: "true" - name: TRACKING_URI value: "http://mlflow-service.numalogic-prometheus.svc.cluster.local:5000" - name: inference scale: min: 1 max: 5 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udf - inference env: - name: DEBUG value: "true" - name: TRACKING_URI value: "http://mlflow-service.numalogic-prometheus.svc.cluster.local:5000" metadata: annotations: iam.amazonaws.com/role: - name: threshold scale: min: 1 max: 5 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udf - threshold env: - name: DEBUG value: "true" - name: TRACKING_URI value: "http://mlflow-service.numalogic-prometheus.svc.cluster.local:5000" - name: postprocess scale: min: 1 max: 5 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs udf: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udf - postprocess env: - name: DEBUG value: "true" - name: REDIS_HOST value: numalogic-redis-cluster.numalogic-prometheus.svc.cluster.local - name: REDIS_PORT value: "6379" - name: REDIS_AUTH value: "5rmmfXtsbL" - name: trainer scale: min: 1 max: 5 volumes: - configMap: name: numalogic-prometheus-app-configs name: app-configs - configMap: name: numalogic-prometheus-default-configs name: default-configs sink: udsink: container: image: quay.io/numaio/numalogic-prometheus/udf:v0.3.0 volumeMounts: - mountPath: /app/numaprom/configs name: app-configs - mountPath: /app/numaprom/default-configs name: default-configs args: - python - starter.py - udsink - train env: - name: DEBUG value: "true" - name: TRACKING_URI value: "http://mlflow-service.numalogic-prometheus.svc.cluster.local:5000" - name: PROMETHEUS_SERVER value: "http://prometheus-service.monitoring.svc.cluster.local:8080" - name: REDIS_HOST value: numalogic-redis-cluster.numalogic-prometheus.svc.cluster.local - name: REDIS_PORT value: "6379" - name: REDIS_AUTH value: "5rmmfXtsbL" - name: prometheus-pusher scale: min: 1 max: 5 sink: udsink: container: env: - name: SKIP_VALIDATION_FAILED value: "true" - name: "PROMETHEUS_SERVER" value: "pushgateway.monitoring.svc.cluster.local:9091" - name: "METRICS_LABELS" value: "intuit_alert=true" image: quay.io/numaio/numaflow-sink/prometheus-pusher:v0.0.9 - name: output scale: min: 1 max: 1 sink: log: {} - name: training-output scale: min: 1 max: 1 sink: log: {} - name: input-output scale: min: 1 max: 1 sink: log: {} edges: - from: input to: decode - from: input to: input-output - from: decode to: filter - from: filter to: window - from: window to: preprocess - from: preprocess to: inference - from: inference to: threshold - from: threshold to: trainer conditions: keyIn: - train - from: threshold to: training-output conditions: keyIn: - train - from: threshold to: postprocess conditions: keyIn: - postprocess - from: postprocess to: output - from: postprocess to: prometheus-pusher