docs(system-monitoring): add a new tutorial - #27
Conversation
TheElectronWill
left a comment
There was a problem hiding this comment.
I have suggested some modifications for the beginning.
It's important to introduce things gradually:
- install (very short, don't waste time on it here)
- systemd service, because system monitoring
- configuration file
- start/enable example
There was a problem hiding this comment.
put the images in a dedicated dir, e.g. images/tutorials/system-monitoring
| ### important files | ||
|
|
||
| Once installed, let's take a quick look at the files. | ||
| The configuration file of alumet could be found under: | ||
| **/etc/alumet/alumet-config.toml**, you could add all needed plugins and their configuration. | ||
|
|
||
| On installation, Alumet add a systemd service. | ||
|  | ||
|
|
||
| As you can see, the service is not enabled and not running. So Alumet is not running for now. |
There was a problem hiding this comment.
| ### important files | |
| Once installed, let's take a quick look at the files. | |
| The configuration file of alumet could be found under: | |
| **/etc/alumet/alumet-config.toml**, you could add all needed plugins and their configuration. | |
| On installation, Alumet add a systemd service. | |
|  | |
| As you can see, the service is not enabled and not running. So Alumet is not running for now. | |
| ### Systemd Service | |
| For a system-wide monitoring, we'll use the **systemd service** that comes with the alumet package you've just installed. | |
|  | |
| As you can see, the service is not enabled and not running. So, Alumet is not running for now. |
| ## Prepare the configuration | ||
|
|
There was a problem hiding this comment.
| ## Prepare the configuration | |
| ## Prepare the Configuration | |
| The alumet-agent started by the systemd service uses a global configuration file, located at `/etc/alumet/alumet-config.toml`. | |
| What should we put in this file to get an effective system monitoring? |
| to start Alumet | ||
|
|
||
| ```bash | ||
| sudo systemctl start alumet.service |
There was a problem hiding this comment.
This will not enable the service, is it intended?
You have to explain this somewhere:
systemctl enable (--now) alumet.service
2e6df9a to
ba1697a
Compare
|  | ||
|
|
||
| If you want, you can disable some plugin, going under the config file and replacing: | ||
| **enabled = true** by **enabled = false** wherever you want to disable the plugin. |
There was a problem hiding this comment.
Not in your example config
There was a problem hiding this comment.
And it's enable not enabled
ba1697a to
586bab5
Compare
There was a problem hiding this comment.
Do we really need a screenshot for a piece of toml file?
There was a problem hiding this comment.
it's to show an example, when words are not enough
There was a problem hiding this comment.
Can agree on that for logs in other screenshots, but not for this one
586bab5 to
4e18095
Compare
4e18095 to
97f3c06
Compare
TheElectronWill
left a comment
There was a problem hiding this comment.
I think the objective of this guide is not clear enough.
Is it (1) for admins who want to use a systemd service, or (2) for a local experiments?
- If (1), talk about the systemd service and how to enable it.
- If (2), don't talk about the service, make the user generate a local config and start alumet-agent manually.
97f3c06 to
af9bb8f
Compare
|
More on option 2 |
af9bb8f to
37c121f
Compare
…ystem in markdown book
37c121f to
e3a07bc
Compare
| Like this: | ||
|  | ||
|
|
||
| Also, you can use the following configuration for a easy-start Alumet monitoring. |
There was a problem hiding this comment.
| Also, you can use the following configuration for a easy-start Alumet monitoring. | |
| Also, you can use the following configuration for an easy-start Alumet monitoring. |
| ### RAPL | ||
|
|
||
| This plugin collects measurements of processor energy usage. Also know as `Running average power limit`, follow the link to learn more on [RAPL](https://en.wikipedia.org/wiki/Perf_(Linux)#RAPL). | ||
|
|
||
| ### Procfs | ||
|
|
||
| This plugin collects processes and system-related metrics on Linux based operating systems. Follow the link to learn more on [Procfs](https://en.wikipedia.org/wiki/Procfs). | ||
|
|
||
| ### CSV | ||
|
|
||
| This plugin writes the measurements sent to Alumet in [CSV format](https://en.wikipedia.org/wiki/Comma-separated_values). | ||
|
|
There was a problem hiding this comment.
You could add a link to each plugin user book page, in case people want to take a deeper look at each of them
There was a problem hiding this comment.
Use the following link instead: ../plugins/3_outputs/csv.md
Same for the others
e3a07bc to
55ea476
Compare
add tutorial on how to monitor the current system in markdown book.