Hi Anurag
Thanks for the reply 🙂
Yes, i made a standalone application in C#.
First i made it just like the demo my-script.cmd which came with the download.
I just copypasted the string into my C# program changing to other numbers, and then writing it to stdout with Console.WriteLine, like this:
Console.WriteLine("metric1 | instance1, value = 123456789");
Console.WriteLine("metric2 | instance1, value = 54321");
I did not run my C# application through a cmd script, but i did receive those new numbers i changed to into my application in the controller (so it seemed to work).
The next day i tried again doing it with various primitives(numbers), both from variables and hardcoded, concatenated into the string, like this:
string datoStreng = datetime.ToString();
string[] splittedFullDate = datoStreng.Split(' ');
string dato = splittedFullDate[0];
string tid = splittedFullDate[1];
string[] strippedTime = tid.Split(':');
string klokka = String.Join("", strippedTime);
int tidToInt32 = System.Convert.ToInt32(klokka);
string test = $"int32 | ronnyscript , value = {tidToInt32}";
Console.WriteLine("int16 | ronnyscript, value = " + "123456789");
Console.WriteLine($"stringvariabel | ronnyscript , value = {klokka}");
Console.WriteLine(test);
Console.WriteLine("hardkodetint | ronnyscript , value = " + 1337);
Console.WriteLine("hardkodetlong | ronnyscript , value = " + 777L);
Console.WriteLine("hardkodetdouble | ronnyscript , value = " + 3.14);
Console.WriteLine("metricx | ronnyscript , value = " + 3.14);
Console.WriteLine("metricy | ronnyscript , value = 78");
None of this worked, even though the last line of code was just like one of those which worked the day before.
Checking the logs a little bit later i see an error message stating i have reached some sort of metric limit of a maximum of 200 metrics.
Do you think maybe i have reached some sort of limit, or do you think all of this is because i didnt run my C# application from a cmd script?
Also i would like to get as much information about this as you can offer me.
I am also interested in DLL based custom extension.
And thank you again.
Kind Regards
Ronny Ellingsen
... View more