Hello,
Text metrics seem not working.
Context: I develop python extensions on my machine, build and upload to Dynatrace. Then the extensions are running on a cloud cluster.
I send 2 metrics :
# __main__.py file
self.report_metric("my_metric_text", "OK")
self.report_metric("my_metric_num", 1)
I run the simulation with the SDK, all is ok :
$ dt-sdk run my_extension
...
send_metric: my_metric_text gauge,OK
send_metric: my_metric_num gauge,1
Sent 2 metric lines to EEC: [MintResponse(lines_ok=2, lines_invalid=0, error=None, warnings=None)]
...
I run the build and the upload, also no error.
Then, when the extension run on the target environnement, I get this error from the log :
_send_metrics: 1 invalid metric lines found
When I check the metrics data, I only saw the numerical metric. So this is the text metric that is considered as ‘invalid’.
I checked the documentation, the ‘value’ parameter can be a text :
value: float | str | int | SummaryStat
I am missing something ?
I am very concerned about the difference between the local run (with the dt-sdk run command) and the ‘true’ run in production.
We are at the end of our migration from extension 1.0 to 2.0 and we run all the new extension on local, to not impact production metrics.
