The prometheus-sli-service has a subscription to the topic: sh.keptn.internal.event.get-sli
Changing behavior
Change the topic to: sh.keptn.event.get-sli.triggered
If receiving the event and the event can be processed (since the provider = prometheus), send a sh.keptn.event.get-sli.started
When the event processing is done, send a sh.keptn.event.get-sli.finished (formerly known as sh.keptn.internal.event.get-sli.done)
For sending the events, the distributor can be used since the distributor will handle the communication to NATS/the public API.
That means this service can simply post an event on 127.0.0.1:8081 and the distributor forwards the event to NATS/the public API.
Task
[ ] Review of content in this repo that refers to the old format of CloudEvents
The prometheus-sli-service has a subscription to the topic:
sh.keptn.internal.event.get-sli
Changing behavior
sh.keptn.event.get-sli.triggered
sh.keptn.event.get-sli.started
sh.keptn.event.get-sli.finished
(formerly known assh.keptn.internal.event.get-sli.done
)Task