Comments (3)
@vachanda , we'll have a look
from anemometer.
I'm sure vachanda above already has fixed this. For others that are having the same issue, the pt-query-digest command line need the hostname specified as described in https://github.com/box/Anemometer/blob/master/README.md
i.e, my function in my collect script run across all db's is:
`
digest() {
LOG "Running pt-query-digest and saving metrics in database $STOREDB - file: $1"
pt-query-digest \
--user=${DBUSER} \
--password=${DBPASS} \
--review h=${STOREDB},D=slow_query_log,t=global_query_review,P=${STOREDBPORT} \
--history h=${STOREDB},D=slow_query_log,t=global_query_review_history,P=${STOREDBPORT} \
--no-report \
--limit=0% \
--filter=" \$event->{Bytes} = length(\$event->{arg}) and \$event->{hostname}=\"$HOSTNAME:$MYPORT\"" $1 >> $SESSIONLOGFILE
EXIT=$?
}
`
Note $HOSTNAME and $MYPORT. The latter is picked up from the local my.cnf file like: MYPORT=$(cat /etc/my.cnf|grep port|head -1|sed 's/[^0-9]//g')
. The former is a bash default var, but if you're on an older bash, you can populate it like HOSTNAME=$(hostname)
from anemometer.
I have the same problem when I use the percona-toolkit 2.2.13,although I specify the host by using --filter=" \$event->{Bytes} = length(\$event->{arg}) and \$event->{hostname}=\"$HOSTNAME\""
I solve it after changing to percona-toolkit 3.0.2.
know more about the hostname_max. You can read this
https://www.percona.com/blog/2012/08/28/hidden-columns-of-query_review_history/
from anemometer.
Related Issues (20)
- Anemometer does not support 5.7 as backend DB HOT 3
- Anemometer for remote servers
- Blank page after selecting a Datasource HOT 5
- Following documentation leads to data connection error. HOT 1
- Incorrect query results and problems with FULL GROUP BY HOT 5
- Division by 0 warnings
- How to get the UI up and running ? HOT 2
- TimeZone error HOT 1
- Maintaining of Anemometer HOT 2
- Plot failed when there are return characters in SQL HOT 1
- PHP Fatal error: Uncaught exception 'Exception' with message DateTime HOT 1
- SHOW TABLE STATUS and SHOW CREATE TABLE occurs messy code
- Error in Query Explain Plugin: Connection error: Lost connection to MySQL server at 'reading initial communication packet', system error: 111(2013)
- Is there an analyzer or visualizer for table locks and deadlock issues?
- pt-query-digest 3.0.11 changed `checksum` from BIGINT UNSIGNED to CHAR(32) HOT 5
- can't find visual explain at /usr/bin/pt-visual-explain
- Click the checksum details page bug "Unknown checksum: ……"
- Incorrect search results based on time range HOT 1
- There is a SQL inject vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anemometer.