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

Prometheus: Add a metric when a worker starts. #1228

Merged
merged 2 commits into from
Sep 18, 2020

Conversation

eloycoto
Copy link
Contributor

When a new worker starts,a new counter will be increased. This metric
will help to identify when an external process kills any worker process
because of any reason.

Signed-off-by: Eloy Coto eloy.coto@acalustra.com

@eloycoto eloycoto requested review from a team as code owners September 17, 2020 20:13
When a new worker starts,a new counter will be increased. This metric
will help to identify when an external process kills any worker process
because of any reason.

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
@@ -54,6 +54,9 @@ openresty_shdict_free_space{dict="limiter"} 1032192
openresty_shdict_free_space{dict="locks"} 1032192
openresty_shdict_free_space{dict="prometheus_metrics"} 16662528
openresty_shdict_free_space{dict="rate_limit_headers"} 20840448
# HELP worker_process Number of times that a nginx worker has been started
# TYPE worker_process counter
worker_process{} 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the {} mandatory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's needed.

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: porueesq <43811485+porueesq@users.noreply.github.com>
@eloycoto eloycoto merged commit 8fa2d64 into 3scale:master Sep 18, 2020
eloycoto added a commit to eloycoto/3scale-Operations that referenced this pull request Oct 8, 2020
This is the SOP for worker restart limit.

Related to:
3scale/3scale-operator#484
3scale/APIcast#1228
https://issues.redhat.com/browse/THREESCALE-5965

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
eloycoto added a commit to eloycoto/3scale-Operations that referenced this pull request Oct 8, 2020
This is the SOP for worker restart limit.

Related to:
3scale/3scale-operator#484
3scale/APIcast#1228
https://issues.redhat.com/browse/THREESCALE-5965

Fix THREESCALE-6119
Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
eloycoto added a commit to eloycoto/3scale-Operations that referenced this pull request Oct 14, 2020
This is the SOP for worker restart limit.

Related to:
3scale/3scale-operator#484
3scale/APIcast#1228
https://issues.redhat.com/browse/THREESCALE-5965

Fix THREESCALE-6119
Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
eloycoto added a commit to 3scale/3scale-Operations that referenced this pull request Oct 14, 2020
This is the SOP for worker restart limit.

Related to:
3scale/3scale-operator#484
3scale/APIcast#1228
https://issues.redhat.com/browse/THREESCALE-5965

Fix THREESCALE-6119
Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
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