CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1f444d676014 scorcher/pinba-server "/docker-entrypoint.s" 17 hours ago Up 57 minutes 0.0.0.0:3306->3306/tcp, 30002/tcp, 0.0.0.0:30002->30002/udp pinba-server
andrey@andrey-vb:~$ php -i| grep pinba
/etc/php/7.0/cli/conf.d/20-pinba.ini,
pinba
pinba.auto_flush => 1 => 1
pinba.enabled => 1 => 1
pinba.server => 127.0.0.1:30002 => 127.0.0.1:30002
<?php
echo 'test';
$t = pinba_timer_start(['tag' => 'tag']);
echo еуые;
pinba_timer_stop($t);
?>
andrey@andrey-vb:~$ mysql -h 172.17.0.1 -uroot -ppasswd
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.5-10.0.23-MariaDB-1~jessie mariadb.org binary distribution
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use pinba
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from timer;
Empty set (0,00 sec)
mysql> select * from request;
Empty set (0,00 sec)
А как вообще проверить работоспособность?
pinba.server => 127.0.0.1:30002 => 127.0.0.1:30002
andrey@andrey-vb:~$ mysql -h 172.17.0.1 -uroot -ppasswd