Skip to content

Commit

Permalink
Add Vercel metrics metadata (DataDog#2215)
Browse files Browse the repository at this point in the history
* Add Vercel metrics metadata

* Fix execution metric unit to use microseconds

* Add vercel.requests as a check metric
  • Loading branch information
sfirrin authored Mar 7, 2024
1 parent 0549ec3 commit c0d7a8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vercel/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"metrics": {
"prefix": "vercel.",
"check": [],
"check": "vercel.requests",
"metadata_path": "metadata.csv"
},
"service_checks": {
Expand All @@ -51,4 +51,4 @@
"Vercel": "assets/dashboards/vercel_overview.json"
}
}
}
}
8 changes: 8 additions & 0 deletions vercel/metadata.csv
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric
vercel.requests,count,,request,,The number of requests to each route in a Vercel project,0,vercel,requests,
vercel.builds.build_count,count,,build,,The number of builds of a Vercel project,0,vercel,builds,
vercel.functions.memorysize,gauge,,mebibyte,,The memory allocated to a Vercel Serverless Function,0,vercel,allocated memory,
vercel.functions.max_memory_used,gauge,,mebibyte,,The max memory used by a Vercel Serverless Function invocation,0,vercel,max memory used,
vercel.functions.invocations,count,,invocation,,The number of invocations of a Vercel Serverless Function,0,vercel,invocations,
vercel.functions.execution,gauge,,microsecond,,The execution time of a Vercel Serverless Function invocation,0,vercel,execution time,
vercel.functions.errors,count,,error,,The number of errors in a Vercel Serverless Function,-1,vercel,errors,
vercel.functions.duration,gauge,,nanosecond,,The duration of a Vercel Serverless Function invocation,0,vercel,invocation duration,

0 comments on commit c0d7a8f

Please sign in to comment.