prometheus-upsc-exporter

rather basic upsc prometheus exporter
git clone https://git.e1e0.net/prometheus-upsc-exporter.git
Log | Files | Refs | README | LICENSE

upsc-exporter.8 (795B)


      1 .Dd January 17, 2020
      2 .Dt UPSC-EXPORTER 8
      3 .Os
      4 .Sh NAME
      5 .Nm upsc-exporter
      6 .Nd parses nut's
      7 .Xr upsc 8
      8 data and exports it in prometheus format for scrapping
      9 .Sh SYNOPSYS
     10 .Nm
     11 .Op Fl v
     12 .Op Fl h
     13 .Op Fl p Ar port
     14 .Op Fl ups Ar string
     15 .Sh DESCRIPTION
     16 For each request it gets on /metrics
     17 .Nm
     18 calls
     19 .Xr upsc 8 ,
     20 parses its output and responds in prometheus exporter format.
     21 .Pp
     22 The options are as follows:
     23 .Bl -tag -width Ds
     24 .It Fl v
     25 Prints version and exits.
     26 .It Fl h
     27 Prints help and exits.
     28 .It Fl p Ar port
     29 Port to listen to.
     30 It defaults to 8081
     31 .It Fl ups Ar string
     32 ups to get info from.
     33 It defaults to
     34 .Dq ups@localhost
     35 .El
     36 .Sh SEE ALSO
     37 .Xr upsc 8
     38 .Sh AUTHORS
     39 .An Paco Esteban
     40 .Mt paco@e1e0.net
     41 .Sh BUGS
     42 Probably many.
     43 If you find one and want to send a patch, please to so to:
     44 .Mt patches@e1e0.net