Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nocturnalastro
Copy link
Collaborator

No description provided.

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
Copy link

Thanks for your PR,
Best regards.

.PHONY: test
default:
./hack/build.sh
image:
./hack/build-image.sh
push:
docker push ghcr.io/k8snetworkplumbingwg/linuxptp-daemon-image:latest
Copy link
Collaborator

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
Copy link
Collaborator

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants