So what may be happening is that you are using the default system.yml (system module) see with the defaults for the process metric set so you are probably using the Top N settings and sometimes the process you are looking for is in the Top 5 other times it is not
- module: system
by_cpu: 5 # include top 5 processes by CPU
by_memory: 5 # include top 5 processes by memory
Above are the default settings
These options allow you to filter out all processes that are not in the top N by CPU or memory, in order to reduce the number of documents created. If both the
by_memory options are used, the union of the two sets is included.
If you want all processes take out the top and use something like this
process metricset is enabled, you can use the
processes option to define a list of regexp expressions to filter the processes that are reported. For more complex filtering, you should use the
processors configuration option. See Processors for more information.
The following example config returns metrics for all processes:
Careful that might return A LOT of data ...
So you can adjust there are many settings to adjust it depends on what you want.