From e289a904da8630675267c5551ce51587e47960ed Mon Sep 17 00:00:00 2001 From: Nandita Koppisetty Date: Thu, 9 Feb 2023 13:37:44 -0800 Subject: [PATCH] fix: metric name (#79) Signed-off-by: Nandita Koppisetty --- numaprom/_constants.py | 2 +- numaprom/udf/postprocess.py | 3 +++ pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/numaprom/_constants.py b/numaprom/_constants.py index 2410b8b..bf1da6e 100644 --- a/numaprom/_constants.py +++ b/numaprom/_constants.py @@ -140,7 +140,7 @@ "model_config": MODEL_CONFIG["fuzzy_rollouts"], "output_config": OUTPUT_CONFIG["fuzzy_rollouts"], }, - "namespace_rollout_error_rate": { + "namespace_rollout_api_error_rate": { "keys": ["namespace", "name", "hash_id"], "scrape_interval": 30, "model_config": MODEL_CONFIG["fuzzy_rollouts"], diff --git a/numaprom/udf/postprocess.py b/numaprom/udf/postprocess.py index 41fbefa..9bb76cc 100644 --- a/numaprom/udf/postprocess.py +++ b/numaprom/udf/postprocess.py @@ -122,6 +122,9 @@ def _publish(final_score: float, payload: StreamPayload) -> List[bytes]: _LOGGER.info("%s - Payload sent to publisher: %s", payload.uuid, publisher_json) if model_config["name"] == "default": + _LOGGER.debug( + "%s - Using default config, cannot generate a unified anomaly score", payload.uuid + ) return [publisher_json] try: diff --git a/pyproject.toml b/pyproject.toml index 4fad1bc..270a09f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "numalogic-prometheus" -version = "0.1.5a3" +version = "0.1.5a4" description = "ML inference on numaflow using numalogic on Prometheus metrics" authors = ["Numalogic developers"] packages = [{ include = "numaprom" }]