Comments (8)
Probably DB data was reset while saved index was used based on previously existing data.
Will need to see:
- steps to reproduce
- debug output from influxgraph
to take this further.
from influxgraph.
OS Ubuntu 16.04
On host : influxdb 1.2.0
Install the docker image
Inside image : apt-get update / upgrade
Then : pip list --outdated | cut -d' ' -f1 | xargs pip install --upgrade # upgrading everything
graphite-api.yaml :
finders:
- influxgraph.InfluxDBFinder
influxdb:
host: dockerhost
db: telegraf
templates:
# Default telegraf agent measurement types
- "*.diskio. host.measurements.name.field*"
- "*.disk. host.measurements.path.fstype.field*"
- "*.cpu. host.measurements.cpu.field*"
- host.measurements.field*
memcache:
host: localhost
log_file: /var/log/influxgraph/influxgraph.log
log_level: debug
http://localhost:8000/metrics/find?query=*.cpu.cpu-total.{usage_user,usage_system} is OK.
Response :
[{"text": "usage_system", "id": ".cpu.cpu-total.usage_system", "allowChildren": 0, "expandable": 0, "leaf": 1}, {"text": "usage_user", "id": ".cpu.cpu-total.usage_user", "allowChildren": 0, "expandable": 0, "leaf": 1}]
The influxgraph log file is never created.
from influxgraph.
Will need to create the log directory if it does not exist.
Obvious question, is there an influxdb running at dockerhost:8086
? Does it contain data?
See also #24 - there are outstanding blockers with influx 1.2.0
, not sure if related here but best to stick with 1.1.x
for now.
from influxgraph.
The log directory is created.
There is an influxdb running at dockerhost:8086
Chronograph on the host displays the influxdb data from query : SELECT "usage_user", "usage_system" FROM "telegraf"."autogen"."cpu" WHERE time > now() - 5m
from influxgraph.
The log file entries are not intended correctly, should be:
influxdb:
log_file: /var/log/influxgraph/influxgraph.log
log_level: debug
In any case, have been able to reproduce, the queries look like the below from the docker container:
[DEBUG] 2017-02-23 12:37:44,922 - finder._run_infl_query() - Calling influxdb multi fetch with query - select mean("usage_guest") as "usage_guest" from "" where (time > 1487849864s and time <= 1487853464s) AND (("host" = 'atitude-E6530') AND ("measurements" = 'cpu') AND ("cpu" = 'cpu0')) GROUP BY time(60s), "host", "measurements", "cpu" fill(previous)
Measurement is ""
which is obviously invalid.
Weirdly, running it locally outside docker works fine.
Will have to do some debugging on the running instance, something might have changed with queries on the grafana side. Have not been able to reproduce by running the query manually in python interpreter inside the docker container which is even weirder.
from influxgraph.
Is an issue with template configuration, it should be:
templates:
# Default telegraf agent measurement types
- "*.diskio. host.measurement.name.field*"
- "*.disk. host.measurement.path.fstype.field*"
- "*.cpu. host.measurement.cpu.field*"
- host.measurement.field*
Not host.measurements
The example config at the wiki is correct.
The config should not be accepted without a valid measurement so have updated the title accordingly.
from influxgraph.
Well ... That did it. Thanks :-)
That's sneaky. I hadn't touched anything since January 20th ... it was working with measurements at that time. I swear :-)
from influxgraph.
I believe you, no really I do 😃
from influxgraph.
Related Issues (20)
- Umm. am I an idiot?! HOT 7
- Fields for measurement appear in all metric paths that contain measurement
- 504 Gateway Timeout with Influx Cloud Integration HOT 4
- 504 Gateway Time-out w/ docker container HOT 7
- multiple target query fails with IndexError HOT 8
- Auto-conversion of tag values containing dots HOT 1
- Per metric path configurable fill parameters
- Build _manylinux_ binary wheels of releases HOT 1
- Double consolidation/aggregation of data points by graphite-api
- Use modified graphite-api package HOT 2
- Make block webapp on startup while building index behaviour configurable
- Support for multiple databases as prefix HOT 3
- Building and refreshing of index happens in every worker process putting high load on Influx HOT 1
- Improve InfluxDB response parsing performance
- Allow configurable prefix for retention policies
- TypeError: object of type 'NoneType' has no len() HOT 5
- Docker: make memcache max value configurable HOT 6
- Segfaults on building the index HOT 4
- Updates of Docker Image HOT 4
- Python 3.7 wheel build failing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxgraph.