DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Setup ActiveMQ Artemis on Windows
  • Mastering Git
  • Legacy Code Refactoring: Tips, Steps, and Best Practices
  • What’s the Future of Device Management? 5 Predictions For What Lies Ahead

Trending

  • Getting Started With Agentic Workflows in Java and Quarkus
  • How to Submit a Post to DZone
  • The Missing `bandit` for AI Agents: How I Built a Static Analyzer for Prompt Injection
  • Identity in Action
  1. DZone
  2. Popular
  3. Open Source
  4. How to Install Telegraf on Solaris

How to Install Telegraf on Solaris

Learn how to get started with this open source data collection, processing, and aggregation tool, based on Go, onto a Solaris operating system.

By 
Vikram Jakhar user avatar
Vikram Jakhar
·
Jul. 24, 18 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
7.8K Views

Join the DZone community and get the full member experience.

Join For Free

Telegraf is extremely powerful and one of the fastest adopted tools in the world for collecting, processing, and aggregating different metrics. It’s open source and written in the Go language.

Telegraf is not off-the-shelf supported by the Solaris 10 and 11 operating systems. We would need to compile Telegraf agents from customized source-code for the Solaris operating system.

Prerequisites

For the purpose of compilation, we would need gccgo (>=5.5.0) installed on the server with a few other libraries.

Installation Procedure for Telegraf Agent

Step 1: Download the latest release tar. Example command below.

wget https://github.com/vikramjakhr/telegraf-solaris/releases/download/v1.0.0/telegraf-solaris.tar.gz


Step 2: Extract the tar downloaded in step 1 in the /tmp directory by executing the below command. It will create a directory named telegraf-solaris in /tmp.

tar -zxvf telegraf-solaris.tar.gz -C /tmp


Step 3: Create user and group that has the name telegraf.

useradd telegraf


Step 4: Now copy the /tmp/telegraf-solaris/opt/csw directory to your Solaris server's /opt directory:

cp -r /tmp/telegraf-solaris/opt/csw /opt


Step 5: Copy telegraf binary and give it execute permission.

cp /tmp/telegraf-solaris/bin/telgraf /usr/bin/telgraf; chmod +x /usr/bin/telgraf


Step 6: Copy the Telegraf  init.d start/stop script:

cp /tmp/telegraf-solaris/script/telegraf /etc/init.d/telegraf ; chmod +x /etc/init.d/telegraf


Step 7: Create the Telegraf conf directory, /etc/telegraf, and the Telegraf conf file.

mkdir /etc/telegraf
cp /tmp/telegraf-solaris/conf/telegraf.conf /etc/telegraf/telegraf.conf


Step 8: Start the Telegraf service.

/etc/init.d/telegraf start


Step 9: Verify if the service is running.

/etc/init.d/telegraf status


Step 10: Use the below command to enable the service in every boot:

ln -s /etc/init.d/telegraf /etc/rc3.d/S93telegraf
Open source Directory Command (computing) Release (computing) Extract IT Fastest

Opinions expressed by DZone contributors are their own.

Related

  • Setup ActiveMQ Artemis on Windows
  • Mastering Git
  • Legacy Code Refactoring: Tips, Steps, and Best Practices
  • What’s the Future of Device Management? 5 Predictions For What Lies Ahead

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook