Commit Graph

12 Commits

Author SHA1 Message Date
Stanislav Nikitin 26ce90bb84
Linting fixes. 2021-11-21 14:45:09 +05:00
Andrey Shcherbinin a252681b26 Fix logger config and parser bugs; use scanner instead of reading request body at once 2021-06-04 08:50:12 +00:00
Stanislav Nikitin 614526b16d
The very basic metricator-client and package.
Package can be used in external things if needed.
2020-12-24 23:06:13 +05:00
Stanislav Nikitin 9410522dd5
Add more debug output and fixed metrics name composing. 2020-12-23 22:12:25 +05:00
Stanislav Nikitin 095aff540e
API version checking and linting. 2020-12-23 19:31:09 +05:00
Stanislav Nikitin 95c8181d2a
Add simple debug logging. 2020-12-23 16:28:57 +05:00
Stanislav Nikitin 935d5d8109
Comment out unneeded in default working mode logging and add changelog. 2020-12-23 15:54:51 +05:00
Stanislav Nikitin 2e8fdb194c
Fill HELP and TYPE for metrics.
Fixes #2.
2020-12-23 15:40:48 +05:00
Stanislav Nikitin c34babeaf8
Add metric type to metric struct. 2020-12-23 13:45:33 +05:00
Stanislav Nikitin 529113a41a
Metrics data is stored as structure, HTTP requests logging, got rid of context.
Metrics data now stored as structures. This is a first step for autodiscovery
helping for NMSes.

HTTP requests now logged.

Got rid of context.Context for getting metric data in applications
because context.Context is useless here.
2020-12-23 13:27:17 +05:00
Stanislav Nikitin cb5fdd4d8e
Little refactor for Prometheus metrics parser. 2020-11-29 05:49:45 +05:00
Stanislav Nikitin 5b1094c258
Linter config tuning and first version of Prometheus metrics parser. 2020-11-29 05:44:21 +05:00