Skip to content

Commit

Permalink
Extend DRM labels
Browse files Browse the repository at this point in the history
Signed-off-by: Deezzir <[email protected]>
  • Loading branch information
Deezzir committed Oct 2, 2024
1 parent 1b332ed commit 0e2ce9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/drm_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewDrmCollector(logger *slog.Logger) (Collector, error) {
CardInfo: prometheus.NewDesc(
prometheus.BuildFQName(namespace, drmCollectorSubsystem, "card_info"),
"Card information",
[]string{"card", "memory_vendor", "power_performance_level", "unique_id", "vendor"}, nil,
[]string{"card", "memory_vendor", "power_performance_level", "unique_id", "chip", "vendor"}, nil,
),
GPUBusyPercent: prometheus.NewDesc(
prometheus.BuildFQName(namespace, drmCollectorSubsystem, "gpu_busy_percent"),
Expand Down Expand Up @@ -112,7 +112,7 @@ func (c *drmCollector) updateAMDCards(ch chan<- prometheus.Metric) error {
for _, s := range stats {
ch <- prometheus.MustNewConstMetric(
c.CardInfo, prometheus.GaugeValue, 1,
s.Name, s.MemoryVRAMVendor, s.PowerDPMForcePerformanceLevel, s.UniqueID, vendor)
s.Name, s.MemoryVRAMVendor, s.PowerDPMForcePerformanceLevel, s.UniqueID, s.HWmonChip, vendor)

ch <- prometheus.MustNewConstMetric(
c.GPUBusyPercent, prometheus.GaugeValue, float64(s.GPUBusyPercent), s.Name)
Expand Down

0 comments on commit 0e2ce9f

Please sign in to comment.