Install Grafana Influx Telegraf Linux




 
1. Download di link grafana official : https://grafana.com/grafana/download
Karna sudah saya downloadload ikuti langkah berikut:

sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_7.5.3_amd64.deb
sudo dpkg -i grafana_7.5.3_amd64.deb

Note : install dependensi nya (libfontconfig1

dashbord : http://127.0.0.1:8086/

Install telegraf dan influx dari repository

Config telegraf :

[agent]

  hostname = "indroid378"

  flush_interval = "15s"

  interval = "15s"


[[inputs.cpu]]

  percpu = true

  totalcpu = true

  fielddrop = ["time_*"]

  report_active = false

[[inputs.disk]]

  ignore_fs = ["tmpfs", "devtmpfs", "none", "iso9660", "overlay", "aufs", "squashfs"]

  mount_points = ["/"]

[[inputs.diskio]]

  skip_serial_number = false # Optional

[[inputs.kernel]]

[[inputs.processes]]

[[inputs.swap]]

  fielddrop=["free","total"]

[[inputs.system]]

  fielddrop=["n_users","uptime_format"]

[[inputs.net]]

  interfaces=["eno33559296"]

  fieldpass = [ "bytes*" ]

[[inputs.kernel]]

[[inputs.mem]]

  fielddrop=["active","buffered","cached","free","inactive","used","used_percent"]

[[inputs.conntrack]]

##[[inputs.docker]]

[[inputs.internal]]

[[inputs.interrupts]]

[[inputs.kernel_vmstat]]

[[inputs.linux_sysctl_fs]]

[[inputs.netstat]]

[[inputs.nstat]]

    interval = "2s"

  proc_net_netstat = "" # this is of interest.

[[inputs.systemd_units]]


[[outputs.influxdb]]

  database = "telegraf"

  urls = [ "http://127.0.0.1:8086" ]

  username = "telegraf"

  password = "telegraf"


[[inputs.postgresql]]

  address = "host=10.1.1.5 port=5432 user=indroid378 database=postgres password=indroid378"

 

2. Cara install influxdb (apt-get install influxdb)
Klo gk bisa masuk ke link ini :

Create an admin account on your InfluxDB server

$ influx Connected to http://localhost:8086 version 1.7.7 InfluxDB shell version: 1.7.7 > CREATE USER admin WITH PASSWORD 'password' WITH ALL PRIVILEGES > SHOW USERS user admin ---- ----- admin true

Create a user account for Telegraf

> CREATE USER telegraf WITH PASSWORD 'password' WITH ALL PRIVILEGES > SHOW USERS user admin ---- ----- admin true telegraf true

3. Cara install telegraf (apt-get install telegraf )

1 komentar

Anonim
30 Maret 2022 pukul 10.37

Playtech - New Zealand's #1 supplier of gaming equipment
Playtech, an innovator herzamanindir of software and services for online https://septcasino.com/review/merit-casino/ gaming titanium metal trim and iGaming products, have partnered https://febcasino.com/review/merit-casino/ with worrione.com supplier Casino.

Reply
avatar