Skip to content

Commit

Permalink
docs(external docs): Fix metrics test example (vectordotdev#18725)
Browse files Browse the repository at this point in the history
Update metrics test example in unit-tests.md
  • Loading branch information
sharonx authored Sep 29, 2023
1 parent d0e605e commit 96def01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/content/en/docs/reference/configuration/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ tags.environment = env
name = "add_unique_id_test"
[[tests.inputs]]
insert_at = "add_unique_id_to_metric"
insert_at = "add_env_to_metric"
type = "metric"
[tests.inputs.metric]
Expand All @@ -424,13 +424,13 @@ kind = "absolute"
counter = { value = 1 }
[[tests.outputs]]
extract_from = "add_unique_id_to_metric"
extract_from = "add_env_to_metric"
[[tests.outputs.conditions]]
type = "vrl"
source = '''
assert_eq!(.name, "website_hits")
assert_eq!(.kind, "absolute)
assert_eq!(.kind, "absolute")
assert_eq!(.tags.environment, "production")
'''
```
Expand Down

0 comments on commit 96def01

Please sign in to comment.