Coder Social home page Coder Social logo

p1_exporter's Introduction

P1 exporter

Travis CI GoDoc Github All Releases GitHub

Prometheus exporter for DSMR (Dutch Smart Meter Requirements) using the end-consumer (P1) interface.

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/roaldnefs/p1_exporter

Usage

 $ p1_exporter--help
usage: p1_exporter --serial.port=SERIAL.PORT [<flags>]

Flags:
  -h, --help                     Show context-sensitive help (also try --help-long and --help-man).
      --web.listen-address=":9602"  
                                 Address on which to expose metrics and web interface.
      --web.telemetry-path="/metrics"  
                                 Path under which to expose metrics.
      --serial.port=SERIAL.PORT  Serial port for the connection to the P1 interface.

p1_exporter's People

Contributors

roaldnefs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

p1_exporter's Issues

error: EOF

Hello!

After having used the exporter for 3 hours it suddenly stopped updating the values. stderr was showing msg=EOF so I restarted the executable. But within two days it happened again.

Situation:
Ubuntu 18.04 armhf on a raspberry 2 with the sole purpose of reading out the values of my DSMR

Output from the exporter shows:

~
root @ meterkast # systemctl status p1_exporter.service
● p1_exporter.service - DSMR P1 Exporter
   Loaded: loaded (/etc/systemd/system/p1_exporter.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-02-08 20:10:54 CET; 3 days ago
 Main PID: 2190 (p1_exporter.lin)
    Tasks: 8 (limit: 2150)
   CGroup: /system.slice/p1_exporter.service
           └─2190 /usr/local/bin/p1_exporter.linux-arm --serial.port /dev/ttyUSB0

Feb 12 13:43:16 meterkast p1_exporter[2190]: time="2020-02-12T13:43:16+01:00" level=error msg=EOF
Feb 12 13:43:26 meterkast p1_exporter[2190]: time="2020-02-12T13:43:26+01:00" level=error msg=EOF
Feb 12 13:43:36 meterkast p1_exporter[2190]: time="2020-02-12T13:43:36+01:00" level=error msg=EOF
Feb 12 13:43:47 meterkast p1_exporter[2190]: time="2020-02-12T13:43:47+01:00" level=error msg=EOF
Feb 12 13:43:57 meterkast p1_exporter[2190]: time="2020-02-12T13:43:57+01:00" level=error msg=EOF
Feb 12 13:44:07 meterkast p1_exporter[2190]: time="2020-02-12T13:44:07+01:00" level=error msg=EOF
Feb 12 13:44:17 meterkast p1_exporter[2190]: time="2020-02-12T13:44:17+01:00" level=error msg=EOF
Feb 12 13:44:27 meterkast p1_exporter[2190]: time="2020-02-12T13:44:27+01:00" level=error msg=EOF
Feb 12 13:44:37 meterkast p1_exporter[2190]: time="2020-02-12T13:44:37+01:00" level=error msg=EOF
Feb 12 13:44:47 meterkast p1_exporter[2190]: time="2020-02-12T13:44:47+01:00" level=error msg=EOF

image

What can I do to help debug this?

edit: I wrote a simple workaround in my systemd unit so no rush :)

Restart=always
RuntimeMaxSec=3600

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.