Open leoberbert opened 2 years ago
Dear,
I'm doing a search for a specific process, but using the {{.Matches}} function because I need to filter by the final command as shown below.
But I can only bring this information using the configuration below:
_process_names:
namedprocess_namegroup_context_switches_total{ctxswitchtype="nonvoluntary",groupname="map[:/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.io.tmpdir=/tmp/elasticsearch-1429234583778284627 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data -XX:ErrorFile=logs/hs_err_pid%p.log -Xlog:gc,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m -Djava.locale.providers=COMPAT -XX:UseAVX=2 -Des.path.home=/home/leoberbert/Downloads/elasticsearch -Des.path.conf=/home/leoberbert/Downloads/elasticsearch/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /home/leoberbert/Downloads/elasticsearch/lib/ org.elasticsearch.bootstrap.Elasticsearch]"} 2
If I do a filter by the process name, the information comes as follows.
process_names:
Is there any way to put a more friendly name on the cmdline that appears below?
namedprocess_namegroup_num_procs{groupname="map[:elasticsearch]"} 2
Regards,
Dear,
I'm doing a search for a specific process, but using the {{.Matches}} function because I need to filter by the final command as shown below.
But I can only bring this information using the configuration below:
_process_names:
namedprocess_namegroup_context_switches_total{ctxswitchtype="nonvoluntary",groupname="map[:/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.io.tmpdir=/tmp/elasticsearch-1429234583778284627 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data -XX:ErrorFile=logs/hs_err_pid%p.log -Xlog:gc,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m -Djava.locale.providers=COMPAT -XX:UseAVX=2 -Des.path.home=/home/leoberbert/Downloads/elasticsearch -Des.path.conf=/home/leoberbert/Downloads/elasticsearch/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /home/leoberbert/Downloads/elasticsearch/lib/ org.elasticsearch.bootstrap.Elasticsearch]"} 2
If I do a filter by the process name, the information comes as follows.
process_names:
Is there any way to put a more friendly name on the cmdline that appears below?
namedprocess_namegroup_num_procs{groupname="map[:elasticsearch]"} 2
Regards,