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

Getting deployment state - missing all deployments in non 'Active' status #140

Open
igorid70 opened this issue Feb 17, 2021 · 5 comments
Open
Labels

Comments

@igorid70
Copy link

igorid70 commented Feb 17, 2021

Hi

I am trying to get deployment status from all my deployments using the following config.yml - see the relevant snippet

componentRuntimes:
  type: WebAppComponentRuntime
  prefix: wls_webapp_config_
  key: name
  values: [deploymentState, contextRoot, sourceInfo, sessionsOpenedTotalCount, openSessionsCurrentCount, openSessionsHighCount]

Whenever all the items are deployed properly and they are marked with status 'Active' in WL console (Home >Summary of Deployments) then I am able to see the respective metrics as well (note MyApp1 is properly shown with status 2)

Screenshot_10

When I made MyApp1 fail during the deployment (appears with state 'Admin' rather than 'Active' in WL console), I obviously expected to see it with the respective status, however MyApp1 simply disappeared in the metrics as if it does not exist at all and not listed in the metrics. The rest (MyApp2, MyApp3 ..) are there as they should be.

Screenshot_9

Also, I can properly see all deployments (including MyApp1 with status 'Admin') via WLST or via WL RESTful services, e.g.

"items": [
    {
        "planPath": null,
        "deploymentPath": "xxxxx.ear",
        "applicationType": "ear",
        "servlets": [],
        "ejbs": [],
        "openSessionsCurrentCount": 0,
        "sessionsOpenedTotalCount": 0,
        "archiveVersion": "123",
        "targets": ["xxxxxx"],
        "name": "MyApp1#123",
        "state": "admin",
        "type": "application",
        "displayName": "MyApp1 (123)"
    },

Any suggestion for the mystery?

wls-exporter v1.3 and WLS v12.2.1.3

@russgold
Copy link
Member

Can you look at the messages page? (replace "metrics" with "messages" in your URL). It should show you what WLS is actually sending.

@igorid70
Copy link
Author

nothing related to my deployed components at all. I searched 'MyApp' string in the /messages page, 'health' or 'deploymentState'. None of the 'MyApp' app-deployments are there at all.

@russgold
Copy link
Member

Are they there when they are active? What is the difference between what that page looks like when they are active and when they are not?

@igorid70
Copy link
Author

When all the deployments are in status 'Active' they are there in /metrics but still no trace of them in /messages

@igorid70
Copy link
Author

Does someone know how to get applications deployment status and see also those which are not in status 'Active'? This seems to be a very important metric, so I wonder which bean/attribute should be used.

@ddsharpe ddsharpe added bug and removed question labels Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants