The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.
I have noticed that the output of the JSON from the HttpEndpoint contains a BOM character which is preventing other clients like Telegraf from reading the JSON. The httpjson input for Telegraf errors out on:
[inputs.httpjson]: unable to parse out as JSON, invalid character 'ï' looking for beginning of value
If you wget the httpendpoint and open the file with a text editor you can see the encoding is UTF-8 BOM.
Writing the BOM character is not always desirable. I would like to request that the JSON parser in Metrics.Net omit the BOM character going forward.
I have noticed that the output of the JSON from the HttpEndpoint contains a BOM character which is preventing other clients like Telegraf from reading the JSON. The httpjson input for Telegraf errors out on:
[inputs.httpjson]: unable to parse out as JSON, invalid character 'ï' looking for beginning of value
If you wget the httpendpoint and open the file with a text editor you can see the encoding is UTF-8 BOM.
Writing the BOM character is not always desirable. I would like to request that the JSON parser in Metrics.Net omit the BOM character going forward.