Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Calculated CPU values:
### Installation

```
npm install cgroup-metrics
npm install @adobe/cgroup-metrics
```

### Usage
Expand All @@ -50,7 +50,7 @@ You can access each metric separately using the async functions for each metric
```javascript
const cgroup = require('cgroup-metrics');

const memory = cgroup.memory();
const memory = cgroup.memory;
const containerUsage = await memory.containerUsage();
console.log(containerUsage);

Expand All @@ -60,7 +60,7 @@ console.log(containerUsagePercentage);

#### CPU Metrics
```javascript
const cpu = cgroup.cpu();
const cpu = cgroup.cpu;

/* Returns an object like:
* {
Expand Down