Augusto Dwenger J.
5d36d67768
Add some more logging to the main, stats and alert package
2020-11-17 17:16:21 +01:00
Augusto Dwenger J.
ac2f6b5957
Extract config and rule file loading to own fuction
...
Reduce the code inside the main function and improve the readablity.
2020-11-17 16:14:03 +01:00
Augusto Dwenger J.
62af80caf1
Move the monitoring functions to an own struct
...
This step was done to reduce the standalone functions insde the
main package.
2020-11-17 16:00:15 +01:00
Augusto Dwenger J.
bf8304f02c
Move transformation of rules T array to Analyser interface func
...
Go does not allow the usage of an interface on a typed array. To
resolve this issue we manually create a new array with the interface type
and add all items to it. This no happens inside the rules sturct
instead of being a single standalone function inside the main package.
2020-11-17 15:05:33 +01:00
Augusto Dwenger J.
b0756879c3
Add init logging to the main function giving it the args configuration
2020-11-17 13:30:47 +01:00
Augusto Dwenger J.
fa1f9ba1b7
Implement logrus to log the main package
...
It adds cli options to set the logging level and the output format.
2020-11-16 23:29:32 +01:00
Augusto Dwenger
052e8f64cc
Add check if the rule is active
2020-11-14 18:41:37 +01:00
Augusto Dwenger
af1f189c7b
Implement ram rules
2020-11-12 14:27:36 +01:00
Augusto Dwenger
b46c001c01
Implement disk rules
2020-11-12 14:27:29 +01:00
Augusto Dwenger
b38829caf5
Implement configuration from config files
...
Adds the ability to specify the location of the configuration files
through parameters. It loads the files and configures the clients
and sets the rules for the analysation.
2020-11-11 16:16:04 +01:00
Augusto Dwenger
0294b548cb
Implement cpu rule analyser
2020-11-10 11:28:59 +01:00
Augusto Dwenger
7c061f0a7e
Small prototype to connect both services
...
It takes one entry from gsave and posts it to gotify.
2020-11-09 10:04:36 +01:00