# Metricbeat on FreeBSD

**URL:** https://discuss.elastic.co/t/metricbeat-on-freebsd/54533
**Category:** Beats
**Tags:** metricbeat
**Created:** [July 1, 2016, 1:06pm UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533 "2016-07-01T13:06:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)
#### Post date: [July 1, 2016, 1:06pm UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/1 "2016-07-01T13:06:29Z")

</div>

Hi,

I am trying metricbeat - however network & diskio are the only metricsets (from the system module) that is working.

When starting metricbeat with e.g. memory metricset enabled I get the following error:

> 2016/07/01 13:02:15.128528 beat.go:224: INFO Home path: [/root/work/beats/metricbeat] Config path: [/root/work/beats/metricbeat] Data path: [/root/work/beats/metricbeat/data] Logs path: [/root/work/beats/metricbeat/logs]  
> 2016/07/01 13:02:15.128551 metricbeat.go:32: INFO Register [ModuleFactory:, MetricSetFactory:[apache/status, mongodb/status, mysql/status, nginx/stubstatus, redis/info, redis/keyspace, system/diskio, system/network, zookeeper/mntr]]  
> 2016/07/01 13:02:15.128569 beat.go:244: INFO Setup Beat: metricbeat; Version: 5.0.0-SNAPSHOT  
> 2016/07/01 13:02:15.128617 output.go:141: INFO Loading template enabled. Reading template file: /root/work/beats/metricbeat/metricbeat.template-es2x.json  
> 2016/07/01 13:02:15.128688 client.go:74: INFO Elasticsearch url: [http://172.16.0.140:9200](http://172.16.0.140:9200)  
> 2016/07/01 13:02:15.128703 outputs.go:88: INFO Activated elasticsearch as output plugin.  
> 2016/07/01 13:02:15.128740 publish.go:292: INFO Publisher name: xxxxxx.xxx.xx  
> 2016/07/01 13:02:15.128793 async.go:63: INFO Flush Interval set to: 1s  
> 2016/07/01 13:02:15.128800 async.go:64: INFO Max Bulk Size set to: 50  
> 2016/07/01 13:02:15.128903 beat.go:280: INFO metricbeat cleanup  
> 2016/07/01 13:02:15.128910 metricbeat.go:83: INFO Dumping runtime metrics...  
> 2016/07/01 13:02:15.128922 metricbeat.go:86: INFO cmdline=["./metricbeat","-e","-v","-c","metricbeat.yml"]  
> 2016/07/01 13:02:15.128942 metricbeat.go:86: INFO fetches={}  
> 2016/07/01 13:02:15.128948 metricbeat.go:86: INFO libbeatEsPublishEventsCallCount=0  
> 2016/07/01 13:02:15.128952 metricbeat.go:86: INFO libbeatEsPublishedAndAckedEvents=0  
> 2016/07/01 13:02:15.128956 metricbeat.go:86: INFO libbeatEsPublishedButNotAckedEvents=0  
> 2016/07/01 13:02:15.128960 metricbeat.go:86: INFO libbeatKafkaPublishEventsCallCount=0  
> 2016/07/01 13:02:15.128963 metricbeat.go:86: INFO libbeatKafkaPublishedAndAckedEvents=0  
> 2016/07/01 13:02:15.128967 metricbeat.go:86: INFO libbeatKafkaPublishedButNotAckedEvents=0  
> 2016/07/01 13:02:15.128971 metricbeat.go:86: INFO libbeatLogstashPublishEventsCallCount=0  
> 2016/07/01 13:02:15.128974 metricbeat.go:86: INFO libbeatLogstashPublishedAndAckedEvents=0  
> 2016/07/01 13:02:15.128978 metricbeat.go:86: INFO libbeatLogstashPublishedButNotAckedEvents=0  
> 2016/07/01 13:02:15.128981 metricbeat.go:86: INFO libbeatMessagesDropped=0  
> 2016/07/01 13:02:15.128985 metricbeat.go:86: INFO libbeatMessagesInWorkerQueues=0  
> 2016/07/01 13:02:15.128989 metricbeat.go:86: INFO libbeatPublishedEvents=0  
> 2016/07/01 13:02:15.128995 beat.go:322: CRIT Exiting: 1 error: metricset 'system/memory' is not registered, metricset not found  
> Exiting: 1 error: metricset 'system/memory' is not registered, metricset not found

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [July 1, 2016, 5:31pm UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/2 "2016-07-01T17:31:58Z")

</div>

I see system/memory being not compiled for freebsd: [https://github.com/elastic/beats/blob/master/metricbeat/module/system/memory/memory.go#L1](https://github.com/elastic/beats/blob/master/metricbeat/module/system/memory/memory.go#L1)

With system module depending on go-sigar, I don't know if memory is supported on freebsd. @ruflin, @andrewkroh any idea?

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [July 3, 2016, 1:21am UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/3 "2016-07-03T01:21:43Z")

</div>

We only recently (3 days ago) [merged a pull request](https://github.com/elastic/gosigar/pull/34) adding FreeBSD support to gosigar (the library that provides cpu/memory/filesystem stats). Metricbeat has not yet been updated and tested with the updated gosigar.

---

<div class="post-metadata">

### Author: ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)
#### Post date: [July 3, 2016, 6:16pm UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/4 "2016-07-03T18:16:24Z")

</div>

Ah, that would explain.

I modified the headers and the modules compiled successfully, but obviously processes and cpu metrics are specific for linux.

Any idea when the updated gosigar will hit metricbeat?

Thanks,

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [July 6, 2016, 1:10am UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/5 "2016-07-06T01:10:23Z")

</div>

I opened a pull request for it here: [https://github.com/elastic/beats/pull/1966](https://github.com/elastic/beats/pull/1966)

---

<div class="post-metadata">

### Author: ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)
#### Post date: [July 6, 2016, 7:53am UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/6 "2016-07-06T07:53:59Z")

</div>

Just did a test - and everything works!

thanks!

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [July 8, 2016, 6:16pm UTC](https://discuss.elastic.co/t/metricbeat-on-freebsd/54533/7 "2016-07-08T18:16:33Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
