<commit_before># Grafana docker image

This container builds a container with the latest master build of Grafana and datasource configuration via environment variables.


## Running your Grafana image

Start your image binding the external port `3000`.

   docker run -i -p 3000:3000 konstantinj/grafana-docker

Try it out, default admin user is admin/admin.


## Configuring your Grafana container

All options defined in conf/grafana.ini can be overriden using environment variables.
You can automatically add a datasource configuration via environment variables, example:

```
docker run -d -p 3000:3000 \
    -e "DS_NAME=datasource_name" \
    -e "DS_TYPE=datasource type (CloudWatch, Graphite, InfluxDB, etc...)" \
    -e "DS_ACCESS=proxy or direct" \
    -e "DS_URL=datasource url" \
    -e "DS_PASS=<PASSWORD>" \
    -e "DS_USER=user" \
    -e "DS_DB=dbname" \
    -e "DS_AUTH=false" \
    -e "DS_AUTH_USER=" \
    -e "AUTH_PASS=" \
    -e "DS_IS_DEFAULT=false" \
    -e "DS_JSON_DATA=null" \
    -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
    -e "GF_SECURITY_ADMIN_PASSWORD=<PASSWORD>" \
    konstantinj/grafana-docker
```<commit_msg>adjusted readme<commit_after># Grafana docker image

This container builds a container with the latest master build of Grafana and datasource configuration via environment variables.


## Running your Grafana image

Start your image binding the external port `3000`.

   docker run -i -p 3000:3000 konstantinj/grafana-docker

Try it out, default admin user is admin/admin.


## Configuring your Grafana container

All options defined in conf/grafana.ini can be overriden using environment variables.
You can automatically add a datasource configuration via environment variables, example:

```
docker run -d -p 3000:3000 \
    -e "DS_NAME=datasource_name" \
    -e "DS_TYPE=datasource type (CloudWatch, Graphite, InfluxDB, etc...)" \
    -e "DS_ACCESS=proxy or direct" \
    -e "DS_URL=datasource url" \
    -e "DS_PASS=<PASSWORD>" \
    -e "DS_USER=user" \
    -e "DS_DB=dbname" \
    -e "DS_AUTH=false" \
    -e "DS_AUTH_USER=" \
    -e "AUTH_PASS=" \
    -e "DS_IS_DEFAULT=false" \
    -e "DS_JSON_DATA=null" \
    -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
    -e "GF_SECURITY_ADMIN_PASSWORD=<PASSWORD>" \
    konjak/docker-grafana
```
{'fraction_non_alphanumeric': 0.10777922642329422, 'fraction_numerical': 0.017383746197305518, 'mean_word_length': 3.444015444015444, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3535773', 'n_tokens_mistral': 833, 'n_tokens_neox': 770, 'n_words': 233}