When i do a curl from mu RHEL machine to set a silence with curl like this:

curl -s -i -X POST -H "Content-Type: application/json" -d '{"comment": 
"testsilence for job KT3","createdBy": "DDW","startsAt": 
"'${startSilence}'","endsAt": "'${endSilence}'","matchers": [{"isRegex": 
false,"name": "job","value": "KT3"}]}' 
lsrv6003.linux.rabobank.nl:9093/api/v2/silences)

And the times are as following:

start: 2021-03-26T12:03:13Z
end: 2021-03-26T13:03:13Z

It shows pending in the GUI>

*Starts at*
12:03:13, 2021-03-26 (UTC)
*Ends at*
13:03:13, 2021-03-26 (UTC)
*Updated at*
11:03:13, 2021-03-26 (UTC)
*Created by*
DDW
*Comment*
testsilence for job KT3
*State*
pending

And the start time is set at script start so like this:

startSilence=`date +%Y-%m-%dT%H:%M:%SZ`
endSilence=`date -d '1 hour' +%Y-%m-%dT%H:%M:%SZ`

What am i missing?

If i subtract 1 hour from the start it shows as Active


-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0f397854-3d0d-4406-803f-958f368b11a8n%40googlegroups.com.

Reply via email to