Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Skip stats update if bunny API scrape failed #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peppelan
Copy link

When failing to scrape from Bunny CDN API, by this change, we skip updating the stats.
Without this change, we used to have SIGSEGV panics at the line ch <- prometheus.MustNewConstMetric(metric, prometheus.GaugeValue, extractFromMap(stats.BandwidthUsed), pullZone.Name)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant