Hi,
I want to run a custom SQL query (to get the count of records in a table) using mysql metricbeat module. Is this possible?
If this is not possible, then I want to create a custom metricset in mysql metricbeat module using the command "make create-metricset" but I dont know what is the location of Beat directory? (I tried /usr/share/metricbeat, /usr/share/metricbeat/bin, /etc/metricbeat but none of them worked)
Also, Where can I view the configuration (({metricset}.go, _meta/docs.asciidoc, meta/data.json, _meta/fields.yml)) for existing metricsets like the "status" metricset of mysql metricbeat module?
It is not possible to run a custom SQL query right now using the MySQL module.
To generate a new metricset, you need to clone our repository: https://github.com/elastic/beats
You need to run make create-metricset inside the metricbeat folder of the repository. The default value of the path of the beats directory would be sufficient in this case. This make target generates and copies the files you mentioned in your comment.
Hi Kvch,
What should be the GOPATH and GOROOT environment variable values?
Also, after I create the metricset, how do I install the new package in Linux machine. Earlier I have used the rpm package to deploy metricbeat in CentOS
Hi @pierhugues,
How to do a build in local machine, since I get the error that the package "github.com/elastic/beats/metricbeat/cmd" is not found when I try to run the main.go file present in metricbeat folder using the command go run main.go
Hi @pierhugues,
Is there any other way for me to create rpm file from the metricbeat code
If I have the code in github, is there a travis-CI build setting that I can configure to generate rpm file from the code. I want to generate the rpm file and install this rpm file in Cent OS
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.