Pure JAVA client for Pinba Engine
Java Protocol Buffer
Latest commit aa2935c Mar 24, 2015 @alex-krash Update README.md
Permalink
Failed to load latest commit information.
.idea Initial code Mar 24, 2015
jpinba-core Initial code Mar 24, 2015
jpinba-servlet Initial code Mar 24, 2015
.gitignore Initial code Mar 24, 2015
LICENSE Initial commit Mar 24, 2015
README.md Update README.md Mar 24, 2015
jpinba2.iml Initial code Mar 24, 2015
pom.xml Initial code Mar 24, 2015

README.md

jpinba

Pure JAVA client for Pinba Engine (http://pinba.org)

Pinba is a MySQL storage engine that acts as a realtime monitoring/statistics server using MySQL as a read-only interface. Jpinba provides client for Pinba server that provides statistics sending from your application.

Usage

General usage of client:

public class Main {

    public static void main(String[] argv) throws InterruptedException, IOException {

        Client client = new Client("localhost");
        JPinbaRequest request = new JPinbaRequest("www56.local","example.com", "/some-page/");

        Tag tagOne = new Tag("memcache", "get");
        Tag tagTwo = new Tag("db", "select");

        Timer one = new Timer(tagOne);
        Thread.sleep(500);
        one.stop();

        Timer two = new Timer(100f, tagOne, tagTwo);

        request.addTimers(one,two);

        request.setRequestTime(100f);

        client.send(request);
    }
}

Servlet API

For ready-to-ride integration with javax.servlet-api, see module jpinba-servlet.