Skip to content

Commit

Permalink
adding example to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 27, 2024
1 parent 9411ccd commit 1e2a23b
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions docs/modules/ROOT/pages/how-tos/appcat/GuaranteedUptimeTarget.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ It might be also worth checking for failing Kubernetes Objects and Composite:
[source,bash]
----
#$instanceNamespace_generated_chars can be obtained in a way: `echo vshn-postgresql-my-super-prod-5jfjn | rev | cut -d'-' -f1 | rev` ===> 5jfjn
kubectl --as cluster-admin get objects | egrep $instanceNamespace_generated_chars # here look for False objects and describe them to find out what is wrong
kubectl --as cluster-admin get objects | egrep $instanceNamespace_generated_chars
kubectl --as cluster-admin describe objects $objectname
kubectl --as cluster-admin get xvshn[TAB here for specific service] | egrep $instanceNamespace_generated_chars # also describe to read what happened
----

Expand Down Expand Up @@ -57,4 +58,33 @@ Possible reasons for failing SLI Prober:
** `` kubectl -n syn-stackgres-operator logs deployments/stackgres-operator ``

* VSHNRedis, VSHNKeycloak, VSHNNextcloud, VSHNMariaDB, VSHNMinio
** ``kubectl -n syn-crossplane logs deployments/provider-helm-4d90a08b9ede``
** ``kubectl -n syn-crossplane logs deployments/provider-helm-4d90a08b9ede``

.Example based on an real alert

[source,bash]
-----
Details:
OnCall : true
alertname : vshn-vshnpostgresql-GuaranteedUptimeTarget
(...)
name : postgresql-analytics-kxxxa
namespace : postgresql-analytics-db
(...)
reason : fail-unknown
service : VSHNPostgreSQL
service_level : best_effort
severity : warning
sla : besteffort
(...)
-----

After You receive such alert on email, you can easily check interesting information, like in this case:

* instance namespace: `vshn-postgresql-postgresql-analytics-kxxxa`
* instanceNamespace_GeneratedChars: `kxxxa`
* claim namespace: `postgresql-analytics-db`

0 comments on commit 1e2a23b

Please sign in to comment.