We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad9d3a commit c1c6059Copy full SHA for c1c6059
index.js
@@ -21,7 +21,7 @@ function getRequestData(request, response, startTime, endTime) {
21
function formatRequestData(data, env) {
22
const url = new URL(data.url);
23
// We're setting field value to 1 to count the number of requests
24
- return `${env.INFLUX_METRIC},status_code=${data.status},url=${data.url},hostname=${url.hostname},pathname=${url.pathname},method=${data.method},cf_cache=${data.cfCache},api_key=${data.apiKey} value=1 ${data.timestamp}`
+ return `${env.INFLUX_METRIC},status_code=${data.status},hostname=${url.hostname},pathname="${url.pathname}",method=${data.method},cf_cache=${data.cfCache},api_key=${data.apiKey} value=1 ${data.timestamp}`
25
}
26
27
async function reportMetric(request, response, startTime, endTime, env) {
0 commit comments