influxdata / influxdata/influxdb

[v1.0.0-beta2] Setting [[graphite]] templates via ENV variable doesn't work

Open
#6,943 3 comments 0 reactions 0 assignees View on GitHub
area/graphite
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

### Bug report

**Steps to reproduce:**

```
$ export INFLUXDB_GRAPHITE_0_ENABLED=true
$ export INFLUXDB_GRAPHITE_0_BIND_ADDRESS=":2010"
$ export INFLUXDB_GRAPHITE_0_DATABASE="graphiteTest"

$ export INFLUXDB_GRAPHITE_0_TEMPLATES='["jmeter.test.*.* app..measurement.field"]'
OR
$ export INFLUXDB_GRAPHITE_0_TEMPLATES_0="jmeter.test.*.* app..measurement.field"
OR
$ export INFLUXDB_GRAPHITE_0_TEMPLATES="jmeter.test.*.* app..measurement.field"
OR
$ export INFLUXDB_GRAPHITE_0_TEMPLATES_0='["jmeter.test.*.* app..measurement.field"]'

$ service influxdb start
$ echo "jmeter.test.a.max 23 `date +%s`" | nc -vvv localhost 2010
$ influx
> use graphiteTest
> show measurements
name: measurements
------------------
name
jmeter.test.a.max
```

**Expected behavior:** [What you expected to happen]

Measurement parses properly

**Actual behavior:** [What actually happened]

It failed to

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the listed INFLUXDB_GRAPHITE_0_* environment variables, the graphite listener on port 2010, and the netcat metric, then inspect linked pull requests 27312 and 27360. Done means the configured template is loaded from the environment and the incoming measurement is parsed into the expected measurement, rather than remaining jmeter.test.a.max.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.