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
Newsletter
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

  • DuckDB for Python Developers
  • Beyond @Transactional: Solving the Dual-Write Problem in Distributed Microservices
  • Replay, Scheduling, and Throttling: Engineering a Self-Service Kafka Streaming Tool at Scale
  • Why AI Agents Need a Shared Enterprise Ontology

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Jul. 24, 18 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.0K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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