PMM API provides wrong setting documentation

Description

Customer wants to be able to make changes to PMM settings using the documented api below while using PMM 3.1:

The setting in question is the data_retention, which has the following documented:

data_retention string

A number of full days for Prometheus and QAN data retention. Should have a suffix in JSON: 2592000s, 43200m, 720h.

When we try to issue the api call following the above pattern ("data_retention": "240h"), it fails with the following:

 

It appears the only acceptable format is seconds, so we have to convert the number of hours as such and this makes the call work: "data_retention": "864000s"

 

 

Would it be possible to allow an user to use hours or days, instead of having to convert them to seconds?

How to test

None

How to document

None

Activity

Details

Assignee

Reporter

Priority

Labels

Needs QA

Yes

Needs Doc

Yes

Smart Checklist

Created 4 days ago
Updated 4 days ago