<commit_before>docker-metrics
==============

collect and visualize docker metrics

collector
---------

directory "collector" has a docker metrics collector script and its sample files for settings.

- collector.rb
    - metrics collector
- influxdb.yml.sample
    - sample file to specify InfluxDB settings
- inventory.yml.sample
    - sample file to specify target machines<commit_msg>write about influxdb<commit_after>docker-metrics
==============

collect and visualize docker metrics

InfluxDB
--------

scripts in this repository use InfluxDB as backend.

you can set up database in another way, but the directory "influxdb" has some scripts and settings to run InfluxDB container.

```sh
cd influxdb
# if your env available docker-compose
docker-compose up -d
# otherwise
# some env need "sudo"
./influxdb.sh
```

collector
---------

directory "collector" has a docker metrics collector script and its sample files for settings.

- collector.rb
    - metrics collector
- influxdb.yml.sample
    - sample file to specify InfluxDB settings
- inventory.yml.sample
    - sample file to specify target machines
{'fraction_non_alphanumeric': 0.10053859964093358, 'fraction_numerical': 0.0, 'mean_word_length': 3.6265560165975104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3416204', 'n_tokens_mistral': 319, 'n_tokens_neox': 284, 'n_words': 124}