<commit_before>docker-resource-reporter
========================

Reports the resource usage of Docker containers to InfluxDB

## Usage

```bash

python report.py 

```

For continous reporting with 5 seconds interval:

```bash

watch python report.py

```

## Config

Edit the `config.yaml` file to config your InfluxDB parameters and Docker Remote API endpoint. Currently, Unix socket binded Docker remote API is not tried.

```yaml

docker:
    api: "http://localhost:4500"
influxdb:
    host: localhost
    user: root
    password: <PASSWORD>
    port: 8086
    database: docker

```<commit_msg>Readme updated<commit_after>docker-resource-reporter
========================

Reports the resource usage of Docker containers to InfluxDB

## Usage

```sh

python report.py 

```

For continous reporting with 5 seconds interval:

```sh

watch python report.py

```

## Config

Edit the `config.yaml` file to config your InfluxDB parameters and Docker Remote API endpoint. Currently, Unix socket binded Docker remote API is not tried.

```yaml

docker:
    api: "http://localhost:4500"
influxdb:
    host: localhost
    user: root
    password: <PASSWORD>
    port: 8086
    database: docker

```
{'fraction_non_alphanumeric': 0.12719665271966527, 'fraction_numerical': 0.01506276150627615, 'mean_word_length': 4.025210084033613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4950851', 'n_tokens_mistral': 393, 'n_tokens_neox': 340, 'n_words': 131}