request-tags

22 views
Skip to first unread message

Xavier Barbosa

unread,
Sep 17, 2014, 9:03:53 AM9/17/14
to pinba-...@googlegroups.com
Hello,

The nginx plugins documentation says that it's possible to tag requests. for exemple :

pinba_tag country US;

How can I access to these data into pinba engine ?
I don't see anything in the docs.

Antony Dovgal

unread,
Sep 18, 2014, 4:37:58 AM9/18/14
to pinba-...@googlegroups.com
Indeed, there's not much in the docs.
Here's the initial decription: https://github.com/tony2001/pinba_engine/wiki/Reports#Request_tags
You can also see request tags in `request` table, make sure it's been created with this DDL:
CREATE TABLE `request` (
`id` int(11) NOT NULL DEFAULT '0',
`hostname` varchar(32) DEFAULT NULL,
`req_count` int(11) DEFAULT NULL,
`server_name` varchar(64) DEFAULT NULL,
`script_name` varchar(128) DEFAULT NULL,
`doc_size` float DEFAULT NULL,
`mem_peak_usage` float DEFAULT NULL,
`req_time` float DEFAULT NULL,
`ru_utime` float DEFAULT NULL,
`ru_stime` float DEFAULT NULL,
`timers_cnt` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`memory_footprint` float DEFAULT NULL,
`schema` varchar(16) DEFAULT NULL,
`tags_cnt` int(11) DEFAULT NULL,
`tags` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=PINBA DEFAULT CHARSET=latin1 COMMENT='request';

You also need make sure you're using an up-to-date version of Pinba, request tags are available since 1.1.0.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime profiling for PHP
Reply all
Reply to author
Forward
0 new messages