Percona-qan-api not starting in docker container

I followed the guide for setting up a docker container here:

After setting up, I proceeded to set up clients and the metrics monitor is working fine. However, the query monitor is not. The output of

pmm-admin check-network

shows that the Query Analytics API is down.

* System Time
PMM Server | 2018-02-06 16:25:34 +0000 GMT
PMM Client | 2018-02-06 16:25:39 +0000 GMT
PMM Client to PMM Server Time Drift | OK

* Connection: Client --> Server
-------------------- -------
-------------------- -------
Consul API OK
Prometheus API OK
Query Analytics API DOWN

Connection duration | 249.326µs
Request duration | 565.454µs
Full round trip | 814.78µs

* Connection: Client <-- Server
-------------- ----- ----------------- ------- ---------- ---------
-------------- ----- ----------------- ------- ---------- ---------
mysql:metrics test OK YES -

After delving into the docker container itself, and trying to start


manually, I get the following output. I found the below command by running ps ax.

[root&#64;42d4d3569b29 bin]# /usr/sbin/percona-qan-api -srcPath /usr/share/percona-qan-api/src -importPath -runMode prod
ERROR: logging before flag.Parse: I0206 16:19:13.471093 8014 logutil.go:31] log: Config dev.conf not found in paths:
panic: Config dev.conf not found in paths:

goroutine 1 [running]:
log.Panic(0xc420173ea8, 0x1, 0x1)
/usr/lib/golang/src/log/log.go:326 +0xc0
/builddir/build/BUILD/qan-api-1.7.0/src/ +0xd2
<autogenerated>:1 +0xdd
<autogenerated>:1 +0x62
<autogenerated>:1 +0x49
<autogenerated>:1 +0x7f
<autogenerated>:1 +0x75
<autogenerated>:1 +0x5a

I’m not sure what to do from this point, as I don’t seem to be able to start the qan api in the docker container. The container has more than enough space, and this is a very recent clean install.

Apologies, this is the guide I followed:

Hello there, thank you for posting. Hopefully the PMM team will be able to take a look at your question very soon, but in the meanwhile just in case this helps you find the solution, I thought I would share a couple of blog posts for you to run through on troubleshooting and installation:

Thanks Lorraine - I had a look at these and they helped confirm that the qan-api is down, but unfortunately there’s no information on why it wouldn’t be working in the container.

Makeshift , What version of Pmm Client and Servers do you using?

roma.novikov The server version is the docker container percona/pmm-server:latest, and it was grabbed yesterday, so it’s 1.7.0

The client version is 1.7.0, according to pmm-admin --version.

Since I didn’t get a reply, I tried 1.6.1 instead and that works fine. Pretty sure the latest version of your docker container doesn’t work.

Makeshift , this is strange. the docker was supposed to work in any cases, especially in a clean install.

Can you also check and run the tool from this tutorial and collect additional data. Thanks