# gpu-task-exporter **Repository Path**: zhopen/gpu-task-exporter ## Basic Information - **Project Name**: gpu-task-exporter - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-06 - **Last Updated**: 2024-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # prometheus exporter 获取gpu上运行的任务的pod的信息 # 指标格式 ``` GPU_TASK{namespace="admin",node_ip="10.30.1.17",pod_name="a75697c9-1367-4905-a7fe-4437b0612a25-86cd566766-xmt7c"} 1 ``` # 接口 /metrics # 命令用法 ``` # ./gputask-exporter --help NAME: gputask-exporter - Promtheus exporter for GPU podname USAGE: gputask-exporter [global options] command [command options] COMMANDS: server Run exporter as daemon server help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help root@86fb5b069b50:/gputask-exporter# ./gputask-exporter server --help NAME: gputask-exporter server - Run exporter as daemon server USAGE: gputask-exporter server [command options] OPTIONS: --gpu-resource-api-url value API address of GPU resouce server --gpu-pod-label value POD label to find out all pod with the label,the label is set if POD is GPU-based (default: "gpu/used=true") --listen-address value ip:port that server listens on (default: ":9401") --help, -h show help ```