Skip to content

Commit

Permalink
docs: added support for custom labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivekanand committed Feb 26, 2024
1 parent 4bb261e commit af9910d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ instrumentator = Instrumentator(
env_var_name="ENABLE_METRICS",
inprogress_name="inprogress",
inprogress_labels=True,
custom_labels={"service": "example-ms"}
)
```

Expand Down Expand Up @@ -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(
Expand All @@ -176,6 +178,7 @@ instrumentator.add(
should_include_status=True,
metric_namespace="namespace",
metric_subsystem="subsystem",
custom_labels={"service": "example-ms"}
)
)
```
Expand Down

0 comments on commit af9910d

Please sign in to comment.