You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started.md
+15-49Lines changed: 15 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,51 +9,10 @@ A few things are required before we start :
9
9
* For [Intel Xeon Processor](https://en.wikipedia.org/wiki/List_of_Intel_Xeon_processors)
10
10
* For [AMD Processor](https://en.wikipedia.org/wiki/Table_of_AMD_processors)
11
11
- A python installation ready
12
-
- Docker & Docker-Compose ready
12
+
- Docker & Docker-Compose ready (refer to [this official documentation](https://docs.docker.com/engine/install/) and the [post-install steps](https://docs.docker.com/engine/install/linux-postinstall/) if needed !)
13
13
- Root access
14
+
- Optionnal : [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) to proceed by clonning the repository
14
15
15
-
The first step of the tutorial will be to define the elements to monitor.
16
-
In the testing archive, we will be able to see the consumption of the docker container by the default.
17
-
So feel free to skip directly to the [preparation part](#preparation) if you don't want to monitor a specific process.
18
-
19
-
## Define elements to monitor
20
-
21
-
!!! tip "Optionnal abstraction for fine-grain analysis"
22
-
This part is optionnal, it allows the definition of cgroups which can group chosen processes that make sense to you.
23
-
If you skip it, the next steps will work against all current process grouped.
24
-
25
-
PowerAPI being a monitoring tool for energy consumption, we can define logic grouping of elements to monitor.
26
-
To do so we can use the Linux abstraction of [cGroups](https://www.redhat.com/sysadmin/cgroups-part-one).
27
-
Kernel supports 2 versions of cGroups : v1 and v2.
28
-
To know which one your kernel supports, you can run :
29
-
```sh
30
-
mount | grep '^cgroup'| awk '{print $1}'| uniq
31
-
```
32
-
33
-
*Both versions can be supported at the same time*.
cd powerapi-ng.github.io/docs/script/getting-started
80
40
```
81
41
42
+
2. Download the archive:
43
+
```
44
+
wget -c https://raw.githubusercontent.com/powerapi-ng/powerapi-ng.github.io/refs/heads/master/docs/script/getting_started.tar.gz -O - | tar -xz
45
+
cd getting_started
46
+
```
47
+
82
48
From this archive, you will have all the necessary files to get started, let us break down each element.
83
49
84
50
### Archive content
@@ -116,7 +82,7 @@ python3 start.py
116
82
```
117
83
118
84
After the 2 minutes of monitoring, you will be able to see the result inside the **csv** directory.
119
-
If you have trouble understanding the output, you can read the [Power Report documentation](./reference/reports/reports.md#power-Reports).
85
+
If you have trouble understanding the output, you can read the [Power Report documentation](./reference/reports/reports.md#power-reports).
120
86
121
87
!!! info "Quick results overview"
122
88
Only in the context of this testing archive, after the monitoring, you can use the following command to get a pretty print of the result directly inside the terminal.
Copy file name to clipboardExpand all lines: docs/reference/database/sources_destinations.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The list of accepted parameters are:
34
34
|`db` (`database` for `HWPCSensor`) | string |`d` (`D` for `HWPCSensor`) | N/A | Yes | The name of your database |
35
35
|`collection`| string |`c` (`C` for `HWPCSensor`) | N/A | Yes | The name of the collection inside `db`|
36
36
|`name`| string |`n`|`"puller_mongodb"` (Source), `pusher_mongodb` (Destination)| No | The related puller/pusher name. This parameter is not used by `HWPCSensor`|
37
-
|`model`| string |`m`|`"HWPCReport"` (Source), `PowerReport` (Destination) | No | The Report type stored by the database |
37
+
|`model`| string |`m`|`"HWPC Report"` (Source), `Power Report` (Destination) | No | The Report type stored by the database |
38
38
39
39
### JSON File Excerpt
40
40
@@ -68,7 +68,7 @@ The list of accepted parameters are:
68
68
|`org`| string |`g`| N/A | Yes | The name of the organization associated to the bucket |
69
69
|`tags`| string |`t`| N/A | No | List of metadata keys of the report separated by `,` that will be kept. `sensor` and `target` are always kept as report metadata |
70
70
|`name`| string |`n`|`"pusher_influxdb2"`| No | The related pusher name |
71
-
|`model`| string |`m`|`"PowerReport"`| No | The Report type stored by the database |
71
+
|`model`| string |`m`|`"Power Report"`| No | The Report type stored by the database |
72
72
73
73
74
74
InfluxDB2 can only be used as a Destination.
@@ -79,7 +79,7 @@ Below you find an example of configuration excerpt for this kind of Destination.
79
79
80
80
```json
81
81
{
82
-
"model": "PowerReport",
82
+
"model": "Power Report",
83
83
"type": "influxdb2",
84
84
"uri": "http://127.0.0.1",
85
85
"port": 8086,
@@ -104,7 +104,7 @@ The list of accepted parameters are:
104
104
|`files`(Source)| string |`f`| Empty list | No | The list of input CSV files with the format file1,file2,file3... |
105
105
|`directory` (Destination and `HWPCSensor`)| string |`d` (`U` for `HWPCSensor`) | Current directory | No |The directory where output CSV files will be written |
106
106
|`name`| string |`n`|`"puller_csv"` (Source), `"pusher_csv"` (Destination)| No | The related puller/pusher name. This parameter is not used by `HWPCSensor`|
107
-
|`model`| string |`m`|`"HWPCReport"` (Source), `"PowerReport"` (Destination) | No | The Report type stored in CSV files. This parameter is not used by `HWPCSensor`|
107
+
|`model`| string |`m`|`"HWPC Report"` (Source), `"Power Report"` (Destination) | No | The Report type stored in CSV files. This parameter is not used by `HWPCSensor`|
108
108
109
109
### JSON File Excerpt
110
110
@@ -132,7 +132,7 @@ The list of accepted parameters are:
132
132
|`port`| int |`P`| N/A | Yes | The port of communication |
133
133
|`uri`/ `host`| int |`U`| N/A | Yes | The IP address of the machine running the socket |
134
134
|`name`| string |`n`|`"puller_socket"`| No | The related puller name |
135
-
|`model`| string |`m`|`"HWPCReport"`| No | The Report type managed by the socket |
135
+
|`model`| string |`m`|`"HWPC Report"`| No | The Report type managed by the socket |
136
136
137
137
138
138
### JSON File Excerpt
@@ -162,7 +162,7 @@ The list of accepted parameters are:
Copy file name to clipboardExpand all lines: docs/reference/formulas/configuration_files.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The table below shows basic parameters.
12
12
|`stream`|`bool` (flag) |`s`|`False`| Real time or post-mortem mode |
13
13
|`sensor-report-sampling-interval`|`int`| N/A |`1000`| The time in milliseconds between two reports (`stream` = `True`) |
14
14
|`input`|`string`| N/A | N/A | SmartWatts input, shall match an existing Sensor output and contain HPWCReports. See [here](./smartwatts.md#smartwatts-inputs)|
15
-
|`output`|`string`| N/A | N/A | SmartWatts output to store PowerReport. See [here](./smartwatts.md#smartwatts-outputs)|
15
+
|`output`|`string`| N/A | N/A | SmartWatts output to store Power Report. See [here](./smartwatts.md#smartwatts-outputs)|
16
16
|`pre-processor`|`string`| N/A | N/A | Pre-Processor to modify reports generated by a sensor. More information about Processors and their related parameters can be found [here](../processors/processors.md)|
17
17
|`post-processor`|`string`| N/A | N/A | Post-Processor to modify reports generated by a formula. More information about Processors and their related parameters can be found [here](../processors/processors.md)|
0 commit comments