zabbix_export: version: '6.0' date: '2021-11-21T21:55:23Z' groups: - uuid: 8895384bbc774097bc579e4d02ee6350 name: 'Templates Prod' templates: - uuid: 773d723dd5d847699732db1b7dfd199c template: 'Intel QuickSync GPU metrics' name: 'Intel QuickSync GPU metrics' description: | ## Overview There is template for monitoring (QuickSync)integrated video in Intel processors: You can monitor theese parameters: Multi-Format Codec Engine (also known as “MFX” or “VDBOX”); Video Encode (PAK) and Decode 2nd instance of the MultiFormat Codec Engine, if available (Examples of supported processor include 5th generation of Intel® Core™ processors with Intel® HD Graphics 6000, Intel® Iris™ Graphics 6100, Intel® Iris™ Pro Graphics 6200, Intel® Iris™ Pro Graphics P6300); Video Encode (PAK) and Decode Video Quality Engine (also known as “VEBOX” or Video Quality enhancement pipeline) Deinterlace, Denoise Render Engine (Execution units, media samplers, VME and their caches) Video Encode (ENC), OpenCL, Video Scaling, VPP Composition including frame rate conversion and image stabilization, VPP copy to CPU GT Frequency First of all, you need prepare utility for getting parameters. You need build metrics\_monitor from repo: https://github.com/Intel-Media-SDK/MediaSDK For correct working you may need add line 'run = 0;' at the end of 'while' in cttmetrics\_sample.cpp while(run) ... if (true == isFreq) printf("\tGT Freq: %4.2f", metric\_values[3]); printf("\n"); run = 0 } Add rules to sudoers: Defaults:zabbix !requiretty zabbix ALL=(ALL) NOPASSWD: /opt/intel/mediasdk/tools/metrics\_monitor/\_bin/metrics\_monitor And add needed userparameter in zabbix-agent: UserParameter=gpu.metrics[*],sudo /opt/intel/mediasdk/tools/metrics\_monitor/\_bin/metrics\_monitor "$2" "$3" | sed 's/ usage://g' | sed 's/\t/\n/g' | sed 's/,//g' | sed 's/T F/T\_F/g' | grep "$1" | awk '{print $ 2}' ## Author Kirill Savin groups: - name: 'Templates Prod' items: - uuid: 302d495d8ef141b0acb0f245cd883fe9 name: '$1 usage' key: 'gpu.metrics["GT_Freq",100,500]' delay: 30s history: 30d trends: 180d value_type: FLOAT units: MHz description: 'GT Freq' tags: - tag: Application value: GPU - uuid: 1e8f0286c48d4df6adef789fbce54c9f name: '$1 usage' key: 'gpu.metrics["RENDER",100,500]' delay: 30s history: 30d trends: 180d value_type: FLOAT units: '%' description: 'Render Engine (Execution units, media samplers, VME and their caches) Video Encode (ENC), OpenCL, Video Scaling, VPP Composition including frame rate conversion and image stabilization, VPP copy to CPU' request_method: POST tags: - tag: Application value: GPU - uuid: 1b697ccb3d2f4c6f82b5fb1b60939581 name: '$1 usage' key: 'gpu.metrics["VIDEO ",100,500]' delay: 30s history: 30d trends: 180d value_type: FLOAT units: '%' description: | Multi-Format Codec Engine (also known as “MFX” or “VDBOX”) Video Encode (PAK) and Decode request_method: POST tags: - tag: Application value: GPU - uuid: 310d722a48ae4308804e71ad809bbcfd name: '$1 usage' key: 'gpu.metrics["VIDEO2",100,500]' delay: 30s history: 30d trends: 180d value_type: FLOAT units: '%' description: | 2nd instance of the MultiFormat Codec Engine, if available (Examples of supported processor include 5th generation of Intel® Core™ processors with Intel® HD Graphics 6000, Intel® Iris™ Graphics 6100, Intel® Iris™ Pro Graphics 6200, Intel® Iris™ Pro Graphics P6300) Video Encode (PAK) and Decode request_method: POST tags: - tag: Application value: GPU - uuid: 9e373acf496d4c79a48b41a265e7f52f name: '$1 usage' key: 'gpu.metrics["VIDEO_E",100,500]' delay: 30s history: 30d trends: 180d value_type: FLOAT units: '%' description: | Video Quality Engine (also known as “VEBOX” or Video Quality enhancement pipeline) Deinterlace, Denoise request_method: POST tags: - tag: Application value: GPU graphs: - uuid: 07bfa73014644774a24ad8a0885216a2 name: 'GPU Utilization' show_work_period: 'NO' graph_items: - color: 1A7C11 item: host: 'Intel QuickSync GPU metrics' key: 'gpu.metrics["RENDER",100,500]' - sortorder: '1' color: 2774A4 item: host: 'Intel QuickSync GPU metrics' key: 'gpu.metrics["VIDEO ",100,500]' - sortorder: '2' color: F63100 item: host: 'Intel QuickSync GPU metrics' key: 'gpu.metrics["VIDEO2",100,500]' - sortorder: '3' color: A54F10 item: host: 'Intel QuickSync GPU metrics' key: 'gpu.metrics["VIDEO_E",100,500]'