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

[Jormungandr] monitor jormungandr #4112

Merged
merged 4 commits into from
Sep 26, 2023
Merged

[Jormungandr] monitor jormungandr #4112

merged 4 commits into from
Sep 26, 2023

Conversation

azime
Copy link
Contributor

@azime azime commented Sep 25, 2023

Jira: NAV-2329

@azime azime requested review from xlqian, pbougue and pbench September 25, 2023 13:18
@@ -49,6 +49,6 @@ RUN a2ensite 000-default.conf \

HEALTHCHECK CMD curl -f http://localhost/v1 || exit 1

EXPOSE 80
EXPOSE 80 9091
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, so not using apache on the new health endpoint.

Choose a reason for hiding this comment

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

I'm asking myself if you should not also specify the port 5050 which is exposed for uwsgi stats.

@@ -1,14 +1,27 @@
#!/usr/bin/env bash

app_processes=${1-1}
Copy link
Contributor

Choose a reason for hiding this comment

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

So first arg, and default value is 1.
❤️ bash

@azime azime requested a review from Aletor93 September 26, 2023 07:05
function show_help() {
cat << EOF
Usage: ${0##*/} -j jormungandr-processes -m monitor-processes -r max-requests
-j jormungandr-processes
Copy link
Contributor

Choose a reason for hiding this comment

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

below, the naming is app_processes:

Suggested change
-j jormungandr-processes
-a app-processes number

cat << EOF
Usage: ${0##*/} -j jormungandr-processes -m monitor-processes -r max-requests
-j jormungandr-processes
-m [0|1] monitor-processes
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-m [0|1] monitor-processes
-m [0|1] activate monitor-process

@azime azime merged commit d14b01b into dev Sep 26, 2023
@azime azime deleted the monitoring branch September 26, 2023 10:41
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

3 participants