Pure JAVA client for Pinba Engine
Java Protocol Buffer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
jpinba-core
jpinba-servlet
.gitignore
LICENSE
README.md
jpinba2.iml
pom.xml

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.