Hello everyone again.
dear @TotallyInformation is that possible to get data from windows PC with telegram ? Is it possible and stable right ?
Sorry I dont get it very well
Do you mean to send some metrics to Telegram from a Windows PC?
If you do, then yes. You can do this easily with Telegraf and Node-RED. It seems pretty stable to me though I don't run it permanently because I don't run a Windows server.
OK, you wrote Telegram instead of Telegraf. No problem.
Right, so now we know you've not managed to get Telegraf working, we need to understand why.
In my view, Telegraf is the easiest way - short of expensive software/services or even more confusing PowerShell scripts - to export system data from Windows.
So we need to know what you did to try and install Telegraf and what errors you got from the process so that we can help you get it working. For me, I just followed the instructions.
Here are a few links on using Telegraf with Windows:
First step: Is Telegraf running and is it producing output? Configure a couple of collectors and perhaps the file output just to make sure it is working.
Next step is to decide where you actually want the output to go - for example, is there an MQTT broker on the same network as the Windows device? If so, that might be a good place to send stuff. Otherwise, once you have confirmed that Telegraf is working, we will need to configure Telegraf to output to a TCP port and Node-RED to listen on that same port.
Please read the Telegraf documentation, it isn't difficult to configure. There are a wide range of outputs including a file output which will be the quickest to configure when testing as a service. You could also stop the service and run Telegraf manually - the default test output goes to the console in that case.
I assume that log is on the PC. I don't use telegraf, but looking at the error suggests that you have told it to use influx on the PC (that's what localhost means), you need to tell it where the influx server is.
You have left in the configuration to output to InfluxDB and you don't want that. Just remove it from the Telegraf config file and put in the file output instead.