collectd

Introduction

Collecting and visualizing data is an important way to make informed decisions about your servers and projects.

In a previous guide, we discussed how to install and configure Graphite to visualize data on our servers. However, we didn’t have a good way of collecting or even passing data into Graphite.

In this guide, we’ll discuss the installation and use of collectd, a system statistics gatherer that can collect and organize metrics about your server and running services.

We will show you how to install and configure collectd to pass data into Graphite to render. We will assume that you have Graphite up and running on an Ubuntu 14.04 server as we showed you in the last guide.

Deploy Graphite with Grafana on Ubuntu 14.04 (Part Ⅱ)

Grafana 是 Graphite仪表盘和图形编辑器。Grafana 是开源的、功能齐全的度量仪表盘和图形编辑器,支持 Graphite,InfluxDB 和 OpenTSDB。

Grafana 主要特性:

  • 灵活丰富的图形化选项;
  • 可以混合多种风格;
  • 支持白天和夜间模式;
  • 多个数据源;
  • Graphite 和 InfluxDB 查询编辑器等等。

Deploy Graphite with Grafana on Ubuntu 14.04(Part Ⅰ)

Graphite是一款企业级的监控工具,其采用Django框架,可以运行在廉价的硬件资源之上。Graphite采用简单的文本协议和绘图功能可以方便地使用在任何操作系统上。本文将以Ubuntu 14.04为系统环境,就Graphite与Grafana的安装与协作做详细介绍。

Before You Begin / 热身准备

1. Familiarize yourself with our Getting Started guide and complete the steps for setting your Linode’s hostname and timezone.
本文原文来自Linode官网,所以会看到Linode字样,不用理会,把它当成你的主机的就可以了

Jira Manully Install

Launch Jira container

1
docker run --name jira1 -p 8181:8181 -it --entrypoint bash docker.example.com/jira:0.0.1-SNAPSHOT

Install MySQL

1
2
mkdir /var/lib/mysql
installMysql.sh

Percona容器部署

镜像编译

以镜像percona为例,假如我们应用场景如下:
现在需要向pernoa镜像中添加数据库自动备份功能

下载镜像

1
2
cd ~
git clone ssh://gavinwei@git.example.com:29418/docker/bd/percona

操作percona代码

1
2
3
# cd ~/percona
# ls
pom.xml proguard.conf src

我们所需要操作都在src目录的最底层:

SS5 Installation

安装ss5

apt-get install gcc make

下载源码包

1
2
3
wget http://120.52.73.44/jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
cd ./ss5-3.8.9-8
./configure

报错:
configure: error: *** Some of the headers weren't found ***
安装libpam0g-dev解决:
apt-get install libpam0g-dev

make报错:

1
2
3
4
5
SS5OpenLdap.c:29:18: fatal error: ldap.h: No such file or directory
#include <ldap.h>
^
compilation terminated.
make[1]: *** [SS5OpenLdap.o] Error 1

解决:
apt-get install libcurl4-openssl-dev