Grafana is an open-source monitoring tool.
Excellent community
Support all major databases - in the Filsame dashboard.
Dynamics Dashboards and Filters.
Explore metrics and logs
Alerting
Grafana Version
Telegraf - Collects Systems Data - Its like agent
InfluxDb - Store System Data
Grafana - Visualize Data
Grafana Installation
Download Grafana | Grafana Labs
InfluxDB Installation
Install InfluxDB OSS | InfluxDB OSS 1.8 Documentation (influxdata.com)
root@ip-172-31-40-250:~# vi /etc/telegraf/telegraf.conf
root@ip-172-31-40-250:~# influx
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> show measurement;
ERR: error parsing query: found ;, expected EXACT, CARDINALITY at line 1, char 17
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
> show measurements;
ERR: database name required
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".
> show databases;
name: databases
name
----
_internal
telegraf
> use telegraf;
Using database telegraf
> show measurements;
name: measurements
name
----
cpu
disk
diskio
kernel
mem
processes
swap
system
>
> select * from cpu limit 5;
name: cpu
time cpu host usage_guest usage_guest_nice usage_idle usage_iowait usage_irq usage_nice usage_softirq usage_steal usage_system usage_user
---- --- ---- ----------- ---------------- ---------- ------------ --------- ---------- ------------- ----------- ------------ ----------
1663256730000000000 cpu-total ip-172-31-40-250 0 0 92.12557900153139 0.2058672156459009 0 0 0.10293360782295045 0.20586721564601063 2.367472979927806 4.9922799794121735
1663256730000000000 cpu0 ip-172-31-40-250 0 0 91.64948453607117 0.20618556701028737 0 0 0.10309278350512538 0.20618556701036064 2.164948453607761 5.670103092782719
1663256730000000000 cpu1 ip-172-31-40-250 0 0 92.6879505664347 0.20597322348096161 0 0 0 0.20597322348107136 2.4716786817716856 4.428424304840254
1663256740000000000 cpu-total ip-172-31-40-250 0 0 91.37396694215641 0.10330578512399939 0 0 0.10330578512398104 0.2582644628097232 2.5826446280995814 5.578512396695894
1663256740000000000 cpu0 ip-172-31-40-250 0 0 90.49586776859458 0 0 0 0.10330578512396163 0.30991735537190324 3.0991735537190324 5.991735537189151
>
vi /etc/telegraf/telegraf.conf
service telegraf start
service telegraf status
172.31.40.250 --> Influx DB server Private IP
No comments:
Post a Comment