Skip to content

Commit

Permalink
Include the gauge name in the namespace
Browse files Browse the repository at this point in the history
this results in metrics forwarded like
`datalake.<manifestkey>.<metricname>.<column>` = `<value>`
  • Loading branch information
rtyler committed Sep 4, 2024
1 parent ef00ee4 commit 93c8c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambdas/query-metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async fn function_handler(_event: LambdaEvent<CloudWatchEvent>) -> Result<(), Er

let res = cloudwatch
.put_metric_data()
.namespace(format!("DataLake/{name}"))
.namespace(format!("DataLake/{name}/{}", &gauge.name))
.metric_data(datum)
.send()
.await?;
Expand Down

0 comments on commit 93c8c3b

Please sign in to comment.