From af9910d11201ed5da48f324cf70e10cd873eb36f Mon Sep 17 00:00:00 2001 From: Vivekanand Date: Mon, 26 Feb 2024 14:20:01 +0530 Subject: [PATCH] docs: added support for custom labels --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index fb6c2e8..74b3965 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ instrumentator = Instrumentator( env_var_name="ENABLE_METRICS", inprogress_name="inprogress", inprogress_labels=True, + custom_labels={"service": "example-ms"} ) ``` @@ -168,6 +169,7 @@ instrumentator.add( should_include_status=True, metric_namespace="a", metric_subsystem="b", + custom_labels={"service": "example-ms"} ) ).add( metrics.response_size( @@ -176,6 +178,7 @@ instrumentator.add( should_include_status=True, metric_namespace="namespace", metric_subsystem="subsystem", + custom_labels={"service": "example-ms"} ) ) ```