# APM dotnet 1.1.2 error validating JSON document against schema: I\[#\] S\[#\] doesn't validate with \\"metricset#\\

**URL:** <https://discuss.elastic.co/t/apm-dotnet-1-1-2-error-validating-json-document-against-schema-i-s-doesnt-validate-with-metricset/207101>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [November 8, 2019, 12:00pm UTC](https://discuss.elastic.co/t/apm-dotnet-1-1-2-error-validating-json-document-against-schema-i-s-doesnt-validate-with-metricset/207101 "2019-11-08T12:00:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Weeda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j_weeda/32/45092_2.png) [@J\_Weeda](https://discuss.elastic.co/u/J_Weeda)\
**Post date:** [November 8, 2019, 12:00pm UTC](https://discuss.elastic.co/t/apm-dotnet-1-1-2-error-validating-json-document-against-schema-i-s-doesnt-validate-with-metricset/207101/1 "2019-11-08T12:00:27Z")

</div>

**Kibana version** :  
7.4.0 [Cloud]

**Elasticsearch version** :  
7.4.0 [Cloud]

**APM Server version** :  
7.4.0

**APM Agent language and version** :  
dotnet 1.1.2

**Browser version** :  
N/A

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
7.0.0 -\> 7.2.0 -\> 7.4.0 through deb

**Fresh install or upgraded from other version?**  
7.0.0 -\> 7.2.0 -\> 7.4.0 through deb

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
NGINX reverse proxy in front of APM Server and between APM Server and Logstash server

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

We have an issue with our APM dotnet agents (1.1.2) hosted on AWS Lambda which do not seem to collect the system.cpu.total.norm.pct information in a proper format. This is causing a lot of errors in the application and also in the APM-server (7.4.0) logs.

**Provide logs and/or server output (if relevant)**:  
2019-11-06T11:30:46.789+0100 ERROR [request] middleware/log\_middleware.go:74 data validation error {"request\_id": "93fe9539-7408-4f55-be5a-f988482ee59b", "method": "POST", "URL": "/intake/v2/events", "content\_length": 2249, "remote\_address": "3.122.160.87", "user-agent": "elasticapm-dotnet/1.1.2 System.Net.Http/4.6.27909.0 .NET\_Core/2.1.12", "response\_code": 400, "error": "error validating JSON document against schema: I[#] S[#] doesn't validate with "metricset#"  
I[#] S[#/allOf/5] allOf failed  
I[#/samples/system.cpu.total.norm.pct/value] S[#/allOf/5/properties/samples/patternProperties/%5E%5B%5E%2A%22%5D%2A$/properties/value/type] expected number, but got string [{"metricset": {"samples":{"system.memory.total":{"value":649019392.0},"system.memory.actual.free":{"value":440369152.0},"system.process.memory.size":{"value":12418158592.0},"system.process.memory.rss.bytes":{"value":137818112.0},"system.cpu.total.norm.pct":{"value":"NaN"},"system.process.cpu.total.norm.pct":{"value":0.56391401439108568}},"timestamp":1573036126515048}}]"}

---

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [November 9, 2019, 2:54pm UTC](https://discuss.elastic.co/t/apm-dotnet-1-1-2-error-validating-json-document-against-schema-i-s-doesnt-validate-with-metricset/207101/2 "2019-11-09T14:54:22Z")

</div>

Thanks for reporting, this seems like a bug to me - opened [an issue](https://github.com/elastic/apm-agent-dotnet/issues/589) to confirm. In the meantime, you could consider disabling metrics using [one of these approaches](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-reporter.html#config-metrics-interval).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 30, 2019, 10:54am UTC](https://discuss.elastic.co/t/apm-dotnet-1-1-2-error-validating-json-document-against-schema-i-s-doesnt-validate-with-metricset/207101/3 "2019-11-30T10:54:24Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
