-
Notifications
You must be signed in to change notification settings - Fork 800
Events and Help Me function for PMP #11868
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
katarzyna-koltun-mx
wants to merge
2
commits into
development
Choose a base branch
from
kk-pmp-events
base: development
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 all commits
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
141 changes: 141 additions & 0 deletions
141
content/en/docs/private-platform/support/pmp-support.md
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 |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| --- | ||
| title: "Private Mendix Platform Events and the Help Me Function" | ||
| linktitle: "Events and the Help Me Function" | ||
| url: /private-mendix-platform/support-help-me/ | ||
| description: "Documents the handling of app events and the Help Me functionality of Private Mendix Platform." | ||
| weight: 20 | ||
| --- | ||
|
|
||
| ## Introduction | ||
|
|
||
| Private Mendix Platform handles app events and **Help Me** functionality slightly differently for Standalone and Connected modes. For more information about the differences, refer to the following sections. | ||
|
|
||
| ## App Events | ||
|
|
||
| {{< figure src="/attachments/private-platform/pmp-events1.png" class="no-border" >}} | ||
|
|
||
| Event retrieval is always centralized for security reasons. In addition to that, depending on deployment mode, keep the following considerations in mind. | ||
|
|
||
| ### Standalone Mode | ||
|
|
||
| In Standalone mode, Private Mendix Platform retrieves Kubernetes events directly using the Kubernetes API. Only real-time events are supported. Historical events (for example, older than one hour) cannot be retrieved in Standalone mode. | ||
|
|
||
| Customers must configure a Kubernetes token with the appropriate permissions to allow Private Mendix Platform to retrieve these events, as in the following example. | ||
|
|
||
| {{% alert color="info" %}} | ||
| The code sample is intended to show the range of available options. It is presented as example only, and may require significant adaptation to work in your own environment. | ||
| {{% /alert %}} | ||
|
|
||
| ```text | ||
| # create ServiceAccount, ClusterRole, and ClusterRoleBinding | ||
| kubectl apply -f << EOF - | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: mxplatform-cicd | ||
| namespace: kube-system | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: mxplatform-cicd | ||
| namespace: kube-system | ||
| annotations: | ||
| kubernetes.io/service-account.name: mxplatform-cicd | ||
| type: kubernetes.io/service-account-token | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: mxplatform-cicd | ||
| rules: | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - namespaces | ||
| verbs: | ||
| - list | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - deployments | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - pods | ||
| verbs: | ||
| - get | ||
| - list | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - pods/log | ||
| verbs: | ||
| - get | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - events | ||
| verbs: | ||
| - get | ||
| - list | ||
| - apiGroups: | ||
| - privatecloud.mendix.com | ||
| resources: | ||
| - storageplans | ||
| verbs: | ||
| - list | ||
| - apiGroups: | ||
| - privatecloud.mendix.com | ||
| resources: | ||
| - mendixapps | ||
| verbs: | ||
| - '*' | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: mxplatform-cicd | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: mxplatform-cicd | ||
| namespace: kube-system | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: mxplatform-cicd | ||
| apiGroup: rbac.authorization.k8s.io | ||
| EOF | ||
|
|
||
| # get service account token: | ||
| kubectl get secret mxplatform-cicd -nkube-system -o jsonpath='{.data.token}'|base64 -d | ||
| # for openshift cluster | ||
| kubectl get secret mxplatform-cicd -nkube-system -o jsonpath='{.metadata.annotations.openshift\.io/token-secret\.value}' | ||
| ``` | ||
|
|
||
| ### Connected Mode | ||
|
|
||
| In Connected mode, both container logs and events are retrieved from the Grafana API. | ||
|
|
||
| For event retrieval from Grafana, Private Mendix Platform uses the *Kubernetes Event Exporter for Grafana* method. | ||
|
|
||
| Customers must configure the Kubernetes Event Exporter within their environment to ensure events are visible in Grafana (typically through Loki), before Private Mendix Platform can access them. For more information, see [Grafana Integration for Private Mendix Platform](/private-mendix-platform/grafana/). | ||
|
|
||
| ## Help Me Functionality | ||
|
|
||
| {{< figure src="/attachments/private-platform/pmp-events2.png" class="no-border" >}} | ||
|
|
||
| The **Help Me** button provides comprehensive debugging and analysis information, which you can share with support for efficient troubleshooting. | ||
|
|
||
| Clicking the **Help Me** button generates a debug file that includes the following: | ||
|
|
||
| * Basic application information (for example, the application name) | ||
| * Environment details | ||
| * Current pod and container logs (for example, Mendix and M2EE container logs) | ||
| * Current event information, sourced from the following: | ||
|
|
||
| * In Standalone mode - Current Kubernetes events retrieved directly through the Kubernetes API | ||
| * In Connected mode - Container logs and event information retrieved from the Grafana API, leveraging the same integration used for general event retrieval. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.