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

Feat/add prometheus #38

Merged
merged 5 commits into from
Feb 15, 2024
Merged

Feat/add prometheus #38

merged 5 commits into from
Feb 15, 2024

Conversation

MStreet3
Copy link
Collaborator

@MStreet3 MStreet3 commented Feb 15, 2024

This PR adds support for prometheus instrumentation to the worker. No metrics are added but the default Go client metrics are now served on port 2120. A docker compose project is added with a README for running the service locally with a prometheus scraper instance running optionally.

Testing

The image below shows the number of go-routines active while the worker is running. There is no increasing trend.
This image was generated by running the timelock worker and prometheus instance and navigating to the prometheus instance to view the metric graphs.

image

# i.e. If the file is located in the project root, then the value of ENV_FILE
# should be "timelock.env". If the file is located in a subdirectory, then the
# value of ENV_FILE should be "subdirectory/timelock.env".
ENV_FILE="timelock.env"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used in the docker compose file to specify the source config file that will be mounted in the container at /app/timelock.env

@MStreet3 MStreet3 merged commit 68c13e7 into develop Feb 15, 2024
3 checks passed
@MStreet3 MStreet3 deleted the feat/add-prometheus branch February 15, 2024 18:00
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