Skip to content

Commit

Permalink
fix: get all running servers and not just first page (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
karsten42 authored Aug 29, 2024
1 parent 45d8c2b commit 4311344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/server_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (c *ServerMetricsCollector) Collect(ch chan<- prometheus.Metric) {
defer cancel()

now := time.Now()
servers, _, err := c.client.Server.List(ctx, hcloud.ServerListOpts{
servers, err := c.client.Server.AllWithOpts(ctx, hcloud.ServerListOpts{
Status: []hcloud.ServerStatus{
hcloud.ServerStatusRunning,
},
Expand Down

0 comments on commit 4311344

Please sign in to comment.