-
Notifications
You must be signed in to change notification settings - Fork 1.8k
TELCODOCS-2171#Generalize Day2Ops Observability #96104
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
Open
amolnar-rh
wants to merge
2
commits into
openshift:main
Choose a base branch
from
amolnar-rh:TELCODOCS-2171-observability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * edge_computing/day_2_core_cnf_clusters/observability/telco-observability.adoc | ||
// * edge_computing/day_2_core_cnf_clusters/observability/observability.adoc | ||
|
||
:_mod-docs-content-type: CONCEPT | ||
[id="telco-observability-key-performance-metrics_{context}"] | ||
[id="observability-key-performance-metrics_{context}"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 [error] OpenShiftAsciiDoc.IdHasContextVariable: ID is missing the '_{context}' variable at the end of the ID. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. False alarm?? |
||
= Key performance metrics | ||
|
||
Depending on your system, there can be hundreds of available measurements. | ||
Depending on your system, you can have hundreds of available measurements. | ||
|
||
Here are some key metrics that you should pay attention to: | ||
You should pay attention to the following key metrics: | ||
|
||
* `etcd` response times | ||
* API response times | ||
|
@@ -17,11 +17,13 @@ Here are some key metrics that you should pay attention to: | |
* OVN health | ||
* Overall cluster operator health | ||
|
||
A good rule to follow is that if you decide that a metric is important, there should be an alert for it. | ||
A good rule to follow is that if you decide that a metric is important, you should set up an alert for the metric. | ||
|
||
[NOTE] | ||
==== | ||
You can check the available metrics by running the following command: | ||
|
||
+ | ||
[source,terminal] | ||
---- | ||
$ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -qsk http://localhost:9090/api/v1/metadata | jq '.data | ||
|
@@ -31,12 +33,14 @@ $ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -qsk ht | |
[id="example-queries-promql"] | ||
amolnar-rh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
== Example queries in PromQL | ||
|
||
The following tables show some queries that you can explore in the metrics query browser using the {product-title} console. | ||
The following tables show queries that you can explore in the metrics query browser by using the {product-title} console. | ||
|
||
[NOTE] | ||
==== | ||
The URL for the console is https://<OpenShift Console FQDN>/monitoring/query-browser. | ||
You can get the OpenShift Console FQDN by running the following command: | ||
You can get the Openshift Console FQDN by running the following command: | ||
|
||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get routes -n openshift-console console -o jsonpath='{.status.ingress[0].host}' | ||
|
@@ -79,7 +83,7 @@ $ oc get routes -n openshift-console console -o jsonpath='{.status.ingress[0].ho | |
|`POST` | ||
|`histogram_quantile (0.99, sum by (le,managed_cluster) (sum_over_time(apiserver_request_duration_seconds_bucket{apiserver="kube-apiserver\|openshift-apiserver", verb="POST"}[60m])))` | ||
|
||
|`LIST` | ||
|`LIST` | ||
|`histogram_quantile (0.99, sum by (le,managed_cluster) (sum_over_time(apiserver_request_duration_seconds_bucket{apiserver="kube-apiserver\|openshift-apiserver", verb="LIST"}[60m])))` | ||
|
||
|`PUT` | ||
|
@@ -130,14 +134,12 @@ $ oc get routes -n openshift-console console -o jsonpath='{.status.ingress[0].ho | |
[id="recommendations-for-storage-of-metrics"] | ||
== Recommendations for storage of metrics | ||
|
||
Out of the box, Prometheus does not back up saved metrics with persistent storage. | ||
If you restart the Prometheus pods, all metrics data are lost. | ||
You should configure the monitoring stack to use the back-end storage that is available on the platform. | ||
To meet the high IO demands of Prometheus you should use local storage. | ||
|
||
For Telco core clusters, you can use the Local Storage Operator for persistent storage for Prometheus. | ||
By default, Prometheus does not back up saved metrics with persistent storage. | ||
If you restart the Prometheus pods, all metrics data are lost. | ||
You must configure the monitoring stack to use the back-end storage that is available on the platform. | ||
To meet the high IO demands of Prometheus, you should use local storage. | ||
|
||
{odf-first}, which deploys a ceph cluster for block, file, and object storage, is also a suitable candidate for a Telco core cluster. | ||
For smaller clusters, you can use the Local Storage Operator for persistent storage for Prometheus. {odf-first}, which deploys a ceph cluster for block, file, and object storage, is suitable for larger clusters. | ||
|
||
To keep system resource requirements low on a RAN {sno} or far edge cluster, you should not provision backend storage for the monitoring stack. | ||
Such clusters forward all metrics to the hub cluster where you can provision a third party monitoring platform. | ||
To keep system resource requirements low on a {sno} cluster, you should not provision back-end storage for the monitoring stack. | ||
Such clusters forward all metrics to the hub cluster where you can provision a third party monitoring platform. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🤖 [error] OpenShiftAsciiDoc.IdHasContextVariable: ID is missing the '_{context}' variable at the end of the ID.
Uh oh!
There was an error while loading. Please reload this page.
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.
It's there, I think this is a false alarm