Is it Possible To Monitor PLC Input and Outputs with Grafana

Hi everyone.
I was using another tool (node-red) for monitorind and visualizing Siemens PLC. But I want to use Grafana because my idea is, grafana looks like better and also more functionalitys.

My question is this, I connected My PLC with ethernet port to RPI3. How can I monitor PLC input and outputs.
I just need inputs and outputs active or passive.

Thanks for your advance.

Any advice please ??