influxdata/telegraf

Slurm plugin error getting diag

Open

#16.170 geöffnet am 9. Nov. 2024

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Go (4.161 Forks)batch import
feature requesthelp wanted

Repository-Metriken

Stars
 (9.892 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 5h) (166 gemergte PRs in 30 T)

Beschreibung

Relevant telegraf.conf

[[inputs.slurm]]
name_prefix = "ctx_dojo_slurm_metrics_"
## Slurmrestd URL. Both http and https can be used as schemas.
url = "http://dojo-controller:6842"
username = "telegraf"
token = ""

[[outputs.file]]
files = ["stdout"]
namepass = ["ctx_dojo_slurm_metrics_*"]
data_format = "csv"

Logs from Telegraf

2024-11-09T00:35:00Z E! [inputs.slurm] Error in plugin: error getting diag: json: cannot unmarshal number 20360765221 into Go struct field V0038DiagRpcm.statistics.rpcs_by_message_type.total_time of type int32

System info

Telegraf 1.32.2, Ubuntu 20.04, Slurm 23.07

Docker

No response

Steps to reproduce

  1. Write the configuration with port number.
  2. Start Telegraf
  3. Error happening ...

Expected behavior

Expected behavior would be to have the slurm metrics dumped out into stdout

Actual behavior

error when getting info from slurm

Additional info

No response

Contributor Guide