-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add readiness endpoint #15
base: main
Are you sure you want to change the base?
Add readiness endpoint #15
Conversation
Adds the following variables IMAGE_NAME, IMAGE_TAG_BASE, VERSION, IMG and CONTAINER_TOOL
Endpoint /ready is on port 8081 It will return a 200 status code when configuration has been applied and all processes in the process manager are running and have collected a metric
Thanks for your PR, |
.PHONY: test | ||
default: | ||
./hack/build.sh | ||
image: | ||
./hack/build-image.sh | ||
push: | ||
docker push ghcr.io/k8snetworkplumbingwg/linuxptp-daemon-image:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
@@ -1009,6 +1029,7 @@ func (p *ptpProcess) processPTPMetrics(output string) { | |||
p.ProcessSynceEvents(logEntry) | |||
} else { | |||
configName, source, ptpOffset, clockState, iface := extractMetrics(p.messageTag, p.name, p.ifaces, output) | |||
p.hasCollectedMetrics = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you would know if there are metrics only if you have ptpOffset, I think That coould be good start. But if events are enable dthen extract metrics is moved to cloud-event-proxy and it will not enter into this condition .
No description provided.