Commit graph

43 commits

Author SHA1 Message Date
Matthias Petermann
f2a7699339
Merge pull request #6 from MatthiasPetermann/bugfix/integer-overflow
Bugfix/integer overflow
2024-05-23 05:14:21 +02:00
a480833a3b Increment patch level 2024-05-23 05:13:27 +02:00
e61e5a96b6 Consistently use 64 bit integers in print functions, refs #1 2024-05-23 05:09:07 +02:00
808fb5952a Merge branch 'main' of ssh://forge.petermann-it.de:2343/mpeterma/netbsd_exporter 2023-12-27 18:56:57 +01:00
50f81b0767 Remove version number from Makefile, add version macros
Fixes #2
2023-12-27 18:56:33 +01:00
f3ccbafb88 Remove version number from Makefile, add version macros, Fixes #2 2023-12-27 18:56:21 +01:00
13a4d74a03 Manpage cosmetics 2023-12-27 17:13:41 +01:00
fdfd61d121 Partially revert previous changes - we will again log to syslog by default but avoid filling the log with useless success-messages on completion.
Fixes #1
2023-12-27 17:08:40 +01:00
4e25d9e6c4 Remove completion message 2023-12-27 03:41:13 +01:00
524e7a7b5b Rework, fixed missing variable rename #1 2023-12-27 03:37:59 +01:00
329eac9f51 Merge branch 'main' of ssh://forge.petermann-it.de:2343/mpeterma/netbsd_exporter 2023-12-27 03:17:21 +01:00
cf577044a0 Disable syslog by default and adjust command line option processing accordingly.
Fixes #1
2023-12-27 03:16:42 +01:00
18d47abd24 Disable syslog by default and adjust command line option processing accordingly. 2023-12-27 03:12:56 +01:00
a785fb5e08 It turned out to be a bad idea to determine the version number based on the git tag. This doesn't work for builds relying on a downloaded release .tar.gz 2023-12-26 23:21:37 +01:00
588b06ad51 Revert previous commits 2023-12-26 23:08:20 +01:00
4c8ebae061 Check if version string is empty 2023-12-26 23:06:13 +01:00
ab5fd97eb5 Move undefined version handling to c code 2023-12-26 23:02:06 +01:00
4f718cbff7 Add quotes around VERSION macro 2023-12-26 22:59:46 +01:00
40b376474e Fixed typo in function name 2023-12-26 22:44:33 +01:00
e685d51620 Fixed tag determination: if no tag is existing, return snapshot 2023-12-26 22:41:02 +01:00
2f59f11fd8 Added option to print version information based on the Git tag the binary was built from 2023-12-26 22:33:58 +01:00
72826fc548 Applied patch for manpage provided by Thomas Klausner 2023-12-26 22:24:11 +01:00
fe6f78bb66 Removed local deploy target, added install target 2023-12-26 22:19:12 +01:00
558e0a4c58 Add git revision to tar filename
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-26 11:30:32 +02:00
3f13f3da99 Changed deploy directory
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-26 11:14:52 +02:00
79afc1f2e4 Added dist target to Makefile
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-26 10:44:22 +02:00
df8638858b Harmonized output format to use common abbreviations for the metric names
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-26 09:50:43 +02:00
mpeterma
ab995826fc Update README.md
Provided an example output after definition of the final output format
2023-05-26 09:47:54 +02:00
f8eacbb824 Renamed method
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-26 09:32:17 +02:00
d81ffa6b8b reversed the behavior of the syslog flag, the default is to log to syslog 2023-05-26 08:31:30 +02:00
bb3e8c2aba Added .gitignore to avoid checking in the binary 2023-05-26 08:28:42 +02:00
278e0c000d Fixed program name in help output 2023-05-26 08:22:10 +02:00
a743992b48 Refactored logging to support sterr/syslog switch, created header file for function prototypes 2023-05-26 08:20:09 +02:00
7baf51d85b Moved manpage to System Managers Manual
Moved manpage to System Managers Manual
2023-05-26 07:09:38 +02:00
238fd4f719 Added template for man page (from example in mdoc(7)) 2023-05-26 06:02:46 +02:00
d0644f552d Changed the metrics prefix to "netbsd". This is by intention, the netbsd_exporter is meant to be a very lightweight NetBSD-specfic utility.
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-24 15:08:11 +02:00
75088b4f8b Add command line arguments to disable HTTP header and output a help text #1
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-24 14:53:10 +02:00
d6d7c7a428 Refactoring of the main() function, #2
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-24 14:29:32 +02:00
7ffa11a969 Some re-arrangements
Signed-off-by: Matthias Petermann <mp@petermann-it.de>
2023-05-24 14:01:44 +02:00
3ab73c68c5 Added missing free() 2023-05-24 13:17:41 +02:00
9b74b33725 Fixed name in license text 2023-05-24 10:44:46 +02:00
0e4b88fcd8 Initial import of the first (working) draft 2023-05-24 10:43:02 +02:00
535192cf47 Initial commit 2023-05-24 10:34:36 +02:00