influxdata / influxdata/influxdata-docker

Kapacitor data volume mount

Open
#315 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
364
Forks
255
Avg merge
3h 18m
Merged PRs (30d)
7

Description

This issue is related to issue #56.

Data from kapacitor didn’t show up at the volume mounting point on the host.
Below is a part of my docker-compose file:
```yaml
influxdb...
chronograf...

kapacitor:
image: kapacitor:1.5
container_name: kapacitor
hostname: kapacitor
volumes:
# Data directory
- /var/metrics/data/kapacitor:/var/lib/kapacitor
# Configuration
- /var/metrics/config/kapacitor:/etc/kapacitor
environment:
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
KAPACITOR_LOGGING_FILE: STDOUT
KAPACITOR_LOGGING_LEVEL: ERROR
links:
- influxdb
depends_on:
- influxdb
```

After investigating inside the docker container to find out where the kapacitor data were stored I found it at `/root/.kapacitor`.
I changed the mapping to this folder and the everything works fine.
```yaml
# Data directory
- /var/metrics/data/kapacitor:/root/.kapacitor
```
Why isn’t the data stored in `/var/lib/kapacitor`?

Looking at the [config](https://github.com/influxdata/influxdata-docker/blob/master/kapacitor/1.5/kapacitor.conf) that’s being copied in the Dockerfile, it looks fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with kapacitor/1.5/kapacitor.conf and the Dockerfile referenced in the issue, then compare their configured data path with the container path observed at /root/.kapacitor. Reproduce the supplied docker-compose volume mapping and determine which path the image actually uses; document or correct the configuration so the intended host mount contains Kapacitor data.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.