The Fastly exporter updates the metric lastSuccessfulResponse even if the Fastly API returns an error. In our case, I noticed that the Fastly token was revoked from the log messages:
level=error component=rt.fastly.com service_id=_reducted_ status_code=403 response_ts=1712674340 err="invalid authentication" msg="token may be invalid"
The metric description suggests that the metric shouldn't be updated:
"last_successful_response", Help: "Unix timestamp of the last successful response received from the real-time stats API."
I tracked it to a specific branch of the code related to retrieving origin metrics as an example:
Related questions:
- Is this the desired behaviour?
- If yes, should another metric be introduced?
If necessary, I can take a look at the code adjustments once we agree on the next steps.
The Fastly exporter updates the metric lastSuccessfulResponse even if the Fastly API returns an error. In our case, I noticed that the Fastly token was revoked from the log messages:
The metric description suggests that the metric shouldn't be updated:
I tracked it to a specific branch of the code related to retrieving origin metrics as an example:
lastSuccessfulResponseis updated.Related questions:
If necessary, I can take a look at the code adjustments once we agree on the next steps.