Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
influxdb / grafana
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Gk2
n00b
n00b


Joined: 28 Oct 2017
Posts: 3

PostPosted: Sat Oct 28, 2017 11:22 pm    Post subject: influxdb / grafana Reply with quote

HI,
I am a long time user of Gentoo (> 10 yrs) and lurker of the forums but now I've got an issue the forums don't seem to provide an answer to, so I registered and logged in. The issue: I want to use some sensors and create nice graphs for the data of the sensors. Initial research showed Influxdb and Grafana would fulfill my requirements. But perhaps I did not check correctly, but both of the packages do not seem to be standard package installs. Did I not look at the right places, or is Gentoo not really supporting this area of the IoT world?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16750

PostPosted: Sat Oct 28, 2017 11:35 pm    Post subject: Reply with quote

Portage has a python db client, and what appears to be the binary package for grafana.
Code:
$ eix -cs |egrep -i 'influx|grafana'
[N] dev-python/influxdb (~2.12.0): InfluxDB client
[N] www-apps/grafana-bin (~4.5.2): Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB


The influxdb itself appears to be available via this bug, though that hasn't been updated in a while. Also mentioned in that bug is an overlay which has support for systemd (but that overlay does not include support for openrc).
_________________
Ladies and gentlemen, allow me to present, Man Not Caring. -- Perry Cox
Back to top
View user's profile Send private message
Gk2
n00b
n00b


Joined: 28 Oct 2017
Posts: 3

PostPosted: Sun Oct 29, 2017 9:46 pm    Post subject: Reply with quote

Hi pjp,

Thanks for the pointers. I already found the client before, but obviously it's not very useful without the db. Grafana-bin seems useful, unfortunately not only InfluxDB but also Graphite and OpenTSDB are not supported very well by Gentoo. I guess I'll have to install some stuff myself, I'm a bit disappointed my favorite distro that used to be on the leading edge of stuff is not very well represented in the world of IoT.
I will not use the systemd variant either, I'm still quite happy with openRC, so I don't expect to switch to systemd soon.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16750

PostPosted: Sun Oct 29, 2017 11:00 pm    Post subject: Reply with quote

Well, as they say, build it and they will come. Maybe?

If you do, consider inquiring in that bug report with updates and maybe adding an overlay. As well, you may consider becoming a proxy maintainer (sometimes summarized as getting the credit for the work, but avoiding any blame which would go to the committer).
_________________
Ladies and gentlemen, allow me to present, Man Not Caring. -- Perry Cox
Back to top
View user's profile Send private message
Gk2
n00b
n00b


Joined: 28 Oct 2017
Posts: 3

PostPosted: Mon Oct 30, 2017 9:50 pm    Post subject: Reply with quote

Ok, let't try to make it work:

*emerge grafana-bin : OK

*make sure that dev-lang/go and dev-vcs/git are installed: check

in terminal: go get github.com/influxdata/influxdb
cd go/src/github.com/influxdata
go get ./...
go install ./...

Fails: zap import incorrect.

Revert to older zap dependency:

back to toplevel go directory to get the go dependancy manager
go get github.com/sparrc/gdm
:OK
cd go/src/github.com/influxdata/influxdb
../../../../bin/gdm restore :this gets the old dependancies
go get ./...
go install ./...

Yeah, now it is OK. I can start the influxd deamon (from the go/bin dir) and start the influx CLI
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum