Skip to content

Traffic usage metrics disappear after 30 days #1188

Open
@wellon

Description

@wellon

Hello. I recently noticed that one of my servers is not showing the traffic usage metrics that I have set for all keys on the server.
What I've found in docker logs shadowbox:
{"log":"E2022-10-09T15:19:38.553Z 11 main.js:108] Error: Got error 422\n","stream":"stderr","time":"2022-10-09T15:19:38.553789313Z"} {"log":"D2022-10-09T15:20:39.329Z 11 main.js:108] getDataUsage request {}\n","stream":"stdout","time":"2022-10-09T15:20:39.330553026Z"}

I guess its probably happening right here in PrometheusClient.

Here is http response of metrics/transfer:
https://postimg.cc/S28YfYwT

I did not change anything after setting up the server. All keys works perfectly.
This is the only server on which I have encountered such problems, and the only one on which I have set traffic limits (50 GB per key). It was hosted on a regular VPS that I rented 2 months ago. My other servers are configured without key traffic restrictions and show their key metrics as usual, they are also hosted by the same provider on a VPS.

Could you please help me find a solution to this problem?

p.s. this is probably a similar issue.
The result of curl 'http://localhost:9090/api/v1/query?query=up': https://pastebin.com/tjvkTC6b

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverusage/service metricsissues related to collecting service metrics

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions