![]() I recommend the query irate(wmi_process_cpu_time_total) to start with. Prometheus is a database - you can use the web GUI to query for raw data but the GUI is not very user-friendly and the PromQL query language can be unintuitive if you are not used to working with time-series data. This will make Prometheus pull data from the exporter (default interval was every 60 seconds, I believe). Define wmi_exporter as a target in Prometheus configuration file.Install it and be sure to enable the per-process metrics at install-time (you need to provide the relevant argument). wmi_exporter is the data collection agent.Easiest install option might be Docker container on Linux but for short one-off use, you can just run it as an exe. Install it on some machine (can be same as the one you are monitoring). Prometheus is the database that stores the data.I can recommend Prometheus as the metrics solution to use in such a case. This might be a bit overkill, though perhaps nevertheless a valuable addition to your toolkit. If Windows performance counters do not work for you (indeed, they have some annoying limitations), you could use a dedicated metrics collection and visualization solution. Click OK, and you should see a detailed graph with CPU usage per process.Click 'Process' top left, and in the bottom you can choose individual processes to view, or select '' and press Add.Click the green + button on the top bar just above the graph (not in the top window).This includes 'Idle Time' so it will always bee around 100%. By default, it's showing you the total CPU usage. Notice at the bottom it says '% Processor Time' and instance is '_Total'.Once your data collection is done, expand Reports > User Defined > Your Data Set. ![]() I found that my data collector stopped working after like 30 minutes without putting a stop condition, but that may have been an anomaly. You can start collecting by right clicking the data collector set and pressing Start, or going to properties on it and setting up scheduling.Select a suitable sample interval, and continue pressing Next until you reach the end of the wizard.Top left, expand 'Process', click '% Processor Time' and anything else you might want.Press next, choose 'Create data logs' and 'Performance counter'. ![]()
0 Comments
Leave a Reply. |