Skip to content

error generate dashboard #3

@wixaw

Description

@wixaw

hello
i have this error

curl http://xxxx:9010/metrics | ./lazydash -t "Demo" -p
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12443    0 12443    0     0   178k      0 --:--:-- --:--:-- --:--:--  178k
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x754fdf]

goroutine 1 [running]:
main.(*Metric).SetSuffix(...)
        /local/monitoring/autodashboard/lazydash/metrics.go:108
main.ParseMetrics({0xc00014d500?, 0xc0000aa010?, 0x5?})
        /local/monitoring/autodashboard/lazydash/prometheus.go:73 +0x6df
main.main()
        /local/monitoring/autodashboard/lazydash/main.go:84 +0x21b9

curl result

# HELP xxxxxx_unit_cpu_system_seconds_total Total job CPU system seconds
# TYPE xxxxxx_unit_cpu_system_seconds_total counter
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 12.26198
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 3.84983
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 74.15425
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 12.107956
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 263.196422
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 158.450938
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 2.305386
xxxxxx_unit_cpu_system_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 2.049928
# HELP xxxxxx_unit_cpu_user_seconds_total Total job CPU user seconds
# TYPE xxxxxx_unit_cpu_user_seconds_total counter
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 23.744443
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 9.802999
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 74.289867
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 116.161345
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 125.97659
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 56.599656
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 8.336531
xxxxxx_unit_cpu_user_seconds_total{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 4.790869
# HELP xxxxxx_unit_cpus Total number of job CPUs
# TYPE xxxxxx_unit_cpus gauge
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 4
xxxxxx_unit_cpus{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 4
# HELP xxxxxx_unit_memory_cache_bytes Memory cache used in bytes
# TYPE xxxxxx_unit_memory_cache_bytes gauge
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 6.2205952e+07
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 323584
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 548864
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 20480
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 49152
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 253952
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 249856
xxxxxx_unit_memory_cache_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 245760
# HELP xxxxxx_unit_memory_fail_count Memory fail count
# TYPE xxxxxx_unit_memory_fail_count gauge
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 0
xxxxxx_unit_memory_fail_count{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 0
# HELP xxxxxx_unit_memory_rss_bytes Memory RSS used in bytes
# TYPE xxxxxx_unit_memory_rss_bytes gauge
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 0
xxxxxx_unit_memory_rss_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 0
# HELP xxxxxx_unit_memory_total_bytes Memory total in bytes
# TYPE xxxxxx_unit_memory_total_bytes gauge
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 1.8527076352e+11
xxxxxx_unit_memory_total_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 1.8527076352e+11
# HELP xxxxxx_unit_memory_used_bytes Memory used in bytes
# TYPE xxxxxx_unit_memory_used_bytes gauge
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="307"} 6.2988288e+07
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="308"} 512000
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="309"} 757760
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="310"} 339968
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="311"} 532480
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="312"} 450560
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="313"} 442368
xxxxxx_unit_memory_used_bytes{hostname="xxxxxx",manager="slurm",project="",user="",uuid="314"} 442368
# HELP xxxxxx_units Total number of jobs
# TYPE xxxxxx_units gauge
xxxxxx_units{hostname="xxxxxx",manager="slurm"} 8
# HELP xxxxxx_cpu_count Number of CPUs.
# TYPE xxxxxx_cpu_count gauge
xxxxxx_cpu_count{hostname="xxxxxx"} 20
# HELP xxxxxx_cpu_seconds_total Seconds the CPUs spent in each mode.
# TYPE xxxxxx_cpu_seconds_total counter
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="idle"} 2.26113742e+06
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="iowait"} 927.38
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="irq"} 83.51
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="nice"} 30.04
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="softirq"} 154.42
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="steal"} 0
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="system"} 1167.02
xxxxxx_cpu_seconds_total{hostname="xxxxxx",mode="user"} 6957.64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions