Skip to content

Commit 275ef3b

Browse files
eschabelledsiper
authored andcommitted
in_gpu_metrics: updated config parameters descriptions.
- Sort configuration parameters alphabetically - Add detailed pattern format info to cards_include and cards_exclude (supports '*' for all, comma-separated IDs, and ranges like '0-2') - Add specific metric names to enable_power and enable_temperature - Standardize path_sysfs description to 'sysfs mount point' - Add trailing periods to descriptions for consistency Fixes #11236. Signed-off-by: Eric D. Schabell <[email protected]>
1 parent ee1d69d commit 275ef3b

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

plugins/in_gpu_metrics/gpu_metrics.c

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -168,34 +168,36 @@ static int in_gpu_exit(void *data, struct flb_config *config)
168168

169169
static struct flb_config_map config_map[] = {
170170
{
171-
FLB_CONFIG_MAP_TIME, "scrape_interval", "5",
172-
0, FLB_TRUE, offsetof(struct in_gpu_metrics, scrape_interval),
173-
"Scrape interval for GPU metrics"
174-
},
175-
{
176-
FLB_CONFIG_MAP_STR, "path_sysfs", "/sys",
177-
0, FLB_TRUE, offsetof(struct in_gpu_metrics, path_sysfs),
178-
"Path to sysfs"
171+
FLB_CONFIG_MAP_STR, "cards_exclude", "",
172+
0, FLB_TRUE, offsetof(struct in_gpu_metrics, cards_exclude),
173+
"Exclude GPU cards by ID. Accepts '*' for all, comma-separated IDs "
174+
"(e.g., '0,1,2'), or ranges (e.g., '0-2')."
179175
},
180176
{
181177
FLB_CONFIG_MAP_STR, "cards_include", "*",
182178
0, FLB_TRUE, offsetof(struct in_gpu_metrics, cards_include),
183-
"Cards to include"
184-
},
185-
{
186-
FLB_CONFIG_MAP_STR, "cards_exclude", "",
187-
0, FLB_TRUE, offsetof(struct in_gpu_metrics, cards_exclude),
188-
"Cards to exclude"
179+
"Include GPU cards by ID. Accepts '*' for all, comma-separated IDs "
180+
"(e.g., '0,1,2'), or ranges (e.g., '0-2')."
189181
},
190182
{
191183
FLB_CONFIG_MAP_BOOL, "enable_power", "true",
192184
0, FLB_TRUE, offsetof(struct in_gpu_metrics, enable_power),
193-
"Enable power metrics"
185+
"Enable collection of GPU power consumption metrics (gpu_power_watts)."
194186
},
195187
{
196188
FLB_CONFIG_MAP_BOOL, "enable_temperature", "true",
197189
0, FLB_TRUE, offsetof(struct in_gpu_metrics, enable_temperature),
198-
"Enable temperature metrics"
190+
"Enable collection of GPU temperature metrics (gpu_temperature_celsius)."
191+
},
192+
{
193+
FLB_CONFIG_MAP_STR, "path_sysfs", "/sys",
194+
0, FLB_TRUE, offsetof(struct in_gpu_metrics, path_sysfs),
195+
"sysfs mount point."
196+
},
197+
{
198+
FLB_CONFIG_MAP_TIME, "scrape_interval", "5",
199+
0, FLB_TRUE, offsetof(struct in_gpu_metrics, scrape_interval),
200+
"Scrape interval to collect GPU metrics."
199201
},
200202
{0}
201203
};

0 commit comments

Comments
 (0)