Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-21 Thread Claudio Jeker
On Fri, Sep 20, 2019 at 10:36:11AM +0200, Rachel Roch wrote:
> Claudio,
> 
> pkg_add node_exporter ?
> 
> I already had a good look at the package list on the FTP mirror and
> can't see any node_exporter there ?  pkg_add seems to agree with me, it
> says "can't find node_exporter" ?
> 
> Certainly pkg_add would be my preferred option, but it seems someone has
> forgot poor old node_exporter for recent releases ?  

node_exporter-0.18.0 is in -current since May. So yes, it has not been in
6.5 or any earlier release.
 
> Regarding the other gmake suggestion, that possibility occurred to me
> after sending yesterday's email, but I guess I would have to edit
> various source files to make sure its calling the right command.  Not
> rocket science I guess, but equally could be time consuming to make sure
> I've caught all the right spots in the code.

-- 
:wq Claudio
 
 
> Sep 20, 2019, 05:29 by cje...@diehard.n-r-g.com:
> 
> > On Thu, Sep 19, 2019 at 10:13:23PM +, Travis Cole wrote:
> >
> >>
> >> Looks like they are assuming GNU make.
> >>
> >>
> >> Try doing the build with 'gmake'.
> >>
> >>
> >> If you don't already have gmake installed:
> >>
> >>
> >> # pkg_add gmake
> >>
> >
> > Or just do `pkg_add node_exporter`. While prometheus does not provide
> > a pre-compiled binary OpenBSD does.
> >
> >> On Thu, Sep 19, 2019 at 11:49:20PM +0200, Rachel Roch wrote:
> >> > Hi,
> >> > 
> >> > The official Prometheus github repo 
> >> > (https://github.com/prometheus/node_exporter) 
> >> >  appears to suggest in 
> >> > multiple places that node_exporter is capable of working on OpenBSD.
> >> > 
> >> > But although they provide pre-compiled binaries for multiple platforms 
> >> > including NetBSD (https://github.com/prometheus/node_exporter/releases) 
> >> >  they seemingly 
> >> > don't provide a binary for OpenBSD.
> >> > 
> >> > So I tried downloading the source and compiling it, but I get a 
> >> > screenful of nasty sounding messages, e.g.:
> >> > Bad modifier: , ,$(shell $(GO) env GOPATH))) 
> >> > 
> >> > Bad modifier: , ,$(shell $(GO) env GOPATH))) 
> >> > 
> >> > No closing parenthesis in archive specification  
> >> > 
> >> > *** Parse error: Error in archive specification: "(, \.'))" 
> >> > (Makefile.common:41) 
> >> > 
> >> > *** Parse error: Need an operator in 'else' (Makefile.common:51) 
> >> > 
> >> > *** Parse error: Need an operator in '' (Makefile.common:54) 
> >> > 
> >> > *** Parse error: Need an operator in '' (Makefile.common:55) 
> >> > 
> >> > *** Parse error: Need an operator in 'endif' (Makefile.common:61)
> >> > 
> >> > Bad modifier: , ,$(shell go env GOPATH)))
> >> > 
> >> > Bad modifier: , ,$(shell go env GOPATH))) 
> >> > 
> >> > 
> >> > Given the popularity of Prometheus, I'm sure someone on-list must be 
> >> > actively running it ?
> >> > 
> >> > Thanks !
> >> > 
> >> > Rachel
> >> > 
> >>
> >
> > -- 
> > :wq Claudio
> >
> 



Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-20 Thread Rachel Roch
Sep 20, 2019, 15:57 by k...@plek.org:

>> On Sep 20, 2019, at 01:38, Rachel Roch
>>
>> Regarding the other gmake suggestion, that possibility occurred to me after 
>> sending yesterday's email, but I guess I would have to edit various source 
>> files to make sure its calling the right command.  Not rocket science I 
>> guess, but equally could be time consuming to make sure I've caught all the 
>> right spots in the code.
>>
>
> I tested it before sending the suggestion. I just ran gmake and it built fine.
>

I appreciate your beta testing of your suggestion !   ;-)

I shall run off to my nearest OpenBSD console forthwith.

Thank you.



Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-20 Thread Travis Cole


> On Sep 20, 2019, at 01:38, Rachel Roch
> 
> Regarding the other gmake suggestion, that possibility occurred to me after 
> sending yesterday's email, but I guess I would have to edit various source 
> files to make sure its calling the right command.  Not rocket science I 
> guess, but equally could be time consuming to make sure I've caught all the 
> right spots in the code.

I tested it before sending the suggestion. I just ran gmake and it built fine.




Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-20 Thread Martin Schröder
Am Fr., 20. Sept. 2019 um 10:36 Uhr schrieb Rachel Roch :
> pkg_add node_exporter ?

It's in current so 6.6 will have it.

Best
   Martin



Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-20 Thread Rachel Roch
Claudio,

pkg_add node_exporter ?

I already had a good look at the package list on the FTP mirror and can't see 
any node_exporter there ?  pkg_add seems to agree with me, it says "can't find 
node_exporter" ?

Certainly pkg_add would be my preferred option, but it seems someone has forgot 
poor old node_exporter for recent releases ?  

Regarding the other gmake suggestion, that possibility occurred to me after 
sending yesterday's email, but I guess I would have to edit various source 
files to make sure its calling the right command.  Not rocket science I guess, 
but equally could be time consuming to make sure I've caught all the right 
spots in the code.


Sep 20, 2019, 05:29 by cje...@diehard.n-r-g.com:

> On Thu, Sep 19, 2019 at 10:13:23PM +, Travis Cole wrote:
>
>>
>> Looks like they are assuming GNU make.
>>
>>
>> Try doing the build with 'gmake'.
>>
>>
>> If you don't already have gmake installed:
>>
>>
>> # pkg_add gmake
>>
>
> Or just do `pkg_add node_exporter`. While prometheus does not provide
> a pre-compiled binary OpenBSD does.
>
>> On Thu, Sep 19, 2019 at 11:49:20PM +0200, Rachel Roch wrote:
>> > Hi,
>> > 
>> > The official Prometheus github repo 
>> > (https://github.com/prometheus/node_exporter) 
>> >  appears to suggest in 
>> > multiple places that node_exporter is capable of working on OpenBSD.
>> > 
>> > But although they provide pre-compiled binaries for multiple platforms 
>> > including NetBSD (https://github.com/prometheus/node_exporter/releases) 
>> >  they seemingly 
>> > don't provide a binary for OpenBSD.
>> > 
>> > So I tried downloading the source and compiling it, but I get a screenful 
>> > of nasty sounding messages, e.g.:
>> > Bad modifier: , ,$(shell $(GO) env GOPATH)))   
>> >   
>> > Bad modifier: , ,$(shell $(GO) env GOPATH)))   
>> >   
>> > No closing parenthesis in archive specification
>> >   
>> > *** Parse error: Error in archive specification: "(, \.'))" 
>> > (Makefile.common:41)   
>> >   
>> > *** Parse error: Need an operator in 'else' (Makefile.common:51)   
>> >   
>> > *** Parse error: Need an operator in '' (Makefile.common:54)   
>> >   
>> > *** Parse error: Need an operator in '' (Makefile.common:55)   
>> >   
>> > *** Parse error: Need an operator in 'endif' (Makefile.common:61)  
>> >   
>> > Bad modifier: , ,$(shell go env GOPATH)))  
>> >   
>> > Bad modifier: , ,$(shell go env GOPATH))) 
>> > 
>> > 
>> > Given the popularity of Prometheus, I'm sure someone on-list must be 
>> > actively running it ?
>> > 
>> > Thanks !
>> > 
>> > Rachel
>> > 
>>
>
> -- 
> :wq Claudio
>



Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-19 Thread Claudio Jeker
On Thu, Sep 19, 2019 at 10:13:23PM +, Travis Cole wrote:
> 
> Looks like they are assuming GNU make.
> 
> 
> Try doing the build with 'gmake'.
> 
> 
> If you don't already have gmake installed:
> 
> 
> # pkg_add gmake
> 

Or just do `pkg_add node_exporter`. While prometheus does not provide
a pre-compiled binary OpenBSD does.

> On Thu, Sep 19, 2019 at 11:49:20PM +0200, Rachel Roch wrote:
> > Hi,
> > 
> > The official Prometheus github repo 
> > (https://github.com/prometheus/node_exporter) 
> >  appears to suggest in 
> > multiple places that node_exporter is capable of working on OpenBSD.
> > 
> > But although they provide pre-compiled binaries for multiple platforms 
> > including NetBSD (https://github.com/prometheus/node_exporter/releases) 
> >  they seemingly don't 
> > provide a binary for OpenBSD.
> > 
> > So I tried downloading the source and compiling it, but I get a screenful 
> > of nasty sounding messages, e.g.:
> > Bad modifier: , ,$(shell $(GO) env GOPATH)))
> >  
> > Bad modifier: , ,$(shell $(GO) env GOPATH)))
> >  
> > No closing parenthesis in archive specification 
> >  
> > *** Parse error: Error in archive specification: "(, \.'))" 
> > (Makefile.common:41)
> >  
> > *** Parse error: Need an operator in 'else' (Makefile.common:51)
> >  
> > *** Parse error: Need an operator in '' (Makefile.common:54)
> >  
> > *** Parse error: Need an operator in '' (Makefile.common:55)
> >  
> > *** Parse error: Need an operator in 'endif' (Makefile.common:61)   
> >  
> > Bad modifier: , ,$(shell go env GOPATH)))   
> >  
> > Bad modifier: , ,$(shell go env GOPATH))) 
> > 
> > 
> > Given the popularity of Prometheus, I'm sure someone on-list must be 
> > actively running it ?
> > 
> > Thanks !
> > 
> > Rachel
> > 
> 

-- 
:wq Claudio



Re: Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-19 Thread Travis Cole


Looks like they are assuming GNU make.


Try doing the build with 'gmake'.


If you don't already have gmake installed:


# pkg_add gmake

On Thu, Sep 19, 2019 at 11:49:20PM +0200, Rachel Roch wrote:
> Hi,
> 
> The official Prometheus github repo 
> (https://github.com/prometheus/node_exporter) 
>  appears to suggest in multiple 
> places that node_exporter is capable of working on OpenBSD.
> 
> But although they provide pre-compiled binaries for multiple platforms 
> including NetBSD (https://github.com/prometheus/node_exporter/releases) 
>  they seemingly don't 
> provide a binary for OpenBSD.
> 
> So I tried downloading the source and compiling it, but I get a screenful of 
> nasty sounding messages, e.g.:
> Bad modifier: , ,$(shell $(GO) env GOPATH)))  
>    
> Bad modifier: , ,$(shell $(GO) env GOPATH)))  
>    
> No closing parenthesis in archive specification   
>    
> *** Parse error: Error in archive specification: "(, \.'))" 
> (Makefile.common:41)  
>    
> *** Parse error: Need an operator in 'else' (Makefile.common:51)  
>    
> *** Parse error: Need an operator in '' (Makefile.common:54)  
>    
> *** Parse error: Need an operator in '' (Makefile.common:55)  
>    
> *** Parse error: Need an operator in 'endif' (Makefile.common:61) 
>    
> Bad modifier: , ,$(shell go env GOPATH))) 
>    
> Bad modifier: , ,$(shell go env GOPATH))) 
> 
> 
> Given the popularity of Prometheus, I'm sure someone on-list must be actively 
> running it ?
> 
> Thanks !
> 
> Rachel
> 



Prometheus node_exporter on OpenBSD - anyone managed ?

2019-09-19 Thread Rachel Roch
Hi,

The official Prometheus github repo 
(https://github.com/prometheus/node_exporter) 
 appears to suggest in multiple 
places that node_exporter is capable of working on OpenBSD.

But although they provide pre-compiled binaries for multiple platforms 
including NetBSD (https://github.com/prometheus/node_exporter/releases) 
 they seemingly don't 
provide a binary for OpenBSD.

So I tried downloading the source and compiling it, but I get a screenful of 
nasty sounding messages, e.g.:
Bad modifier: , ,$(shell $(GO) env GOPATH)))
 
Bad modifier: , ,$(shell $(GO) env GOPATH)))
 
No closing parenthesis in archive specification 
 
*** Parse error: Error in archive specification: "(, \.'))" 
(Makefile.common:41)
 
*** Parse error: Need an operator in 'else' (Makefile.common:51)
 
*** Parse error: Need an operator in '' (Makefile.common:54)
 
*** Parse error: Need an operator in '' (Makefile.common:55)
 
*** Parse error: Need an operator in 'endif' (Makefile.common:61)   
 
Bad modifier: , ,$(shell go env GOPATH)))   
 
Bad modifier: , ,$(shell go env GOPATH))) 


Given the popularity of Prometheus, I'm sure someone on-list must be actively 
running it ?

Thanks !

Rachel