Ready to get going? Start your 14 days free trial today

Start free trial

Have an account? Sign in

Send data via System Metrics for macOS to your Logstash instance provided by Logit.io

System Metrics for macOS

Collect and ship macOS operating system and service metrics to Logstash and Elasticsearch.

Metricbeat is a lightweight shipper that helps you monitor your servers by collecting metrics from the operating system and from services running on the macOS server. Configure Metricbeat using the pre-defined examples below to collect and ship macOS operating system, service metrics and statistics to Logstash or Elasticsearch.

Step 1 - Install MetricbeatCopy

First we need to install Metricbeat.

curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.7.2-darwin-x86_64.tar.gz
tar xzvf metricbeat-6.7.2-darwin-x86_64.tar.gz

Step 2 - Locate configuration fileCopy

cd ~/<EXTRACTED_ARCHIVE>/metricbeat.yml

Step 3 - Configure outputCopy

We'll be shipping to Logstash so that we have the option to run filters before the data is indexed.
Comment out the elasticsearch output block.

## Comment out elasticsearch output
#output.elasticsearch:
#  hosts: ["localhost:9200"]

Uncomment and change the logstash output to match below.

output.logstash:
    hosts: ["your-logstash-host:your-ssl-port"]
    loadbalance: true
    ssl.enabled: true

Step 4 - Enable moduleCopy

There are several built in metricbeat modules you can use. To enable the system module, run the following:

./metricbeat modules list
./metricbeat modules enable system

Step 5 - Configure moduleCopy

Each module has its own configuration file where different metricsets can be enabled / disabled. Locate the configuration file for the system module. ~/<EXTRACTED_ARCHIVE>/modules.d/system.yml

By default the following metrics are enabled. To enable or disable a metric simply comment or uncomment the line out.

- module: system
  period: 10s
  metricsets:
    - cpu
    - load
    - memory
    - network
    - process
    - process_summary
    - socket_summary
    #- core
    #- diskio
    #- socket

Step 6 - Start MetricbeatCopy

Ok, time to start gathering metrics!

./metricbeat

Step 7 - System module dashboardCopy

The System module comes with a predefined Kibana dashboard. To view your dashboards for any of your Logit stacks, launch Kibana and choose Dashboards.

Toggle View

Expand View

Return to Search