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

Correspondence between metrics #57

Open
MLit94 opened this issue Feb 27, 2023 · 1 comment
Open

Correspondence between metrics #57

MLit94 opened this issue Feb 27, 2023 · 1 comment

Comments

@MLit94
Copy link

MLit94 commented Feb 27, 2023

It would be nice if there were possibilities in the "manager_" metrics to see correspondences between them. If i e.g. want to see how many spaces a POrg has, the label "POrg" in the spaces metric would help.

@MLit94 MLit94 changed the title Correspondence beetween metrics* Correspondence between metrics Feb 27, 2023
@rickymoorhouse
Copy link
Member

Definitely makes sense and the data for this is available in the response to /api/cloud/topology - just need to determine the right structure for the metrics and populate them.

For example within the orgs element we have the following structure... showing spaces under catalogs where they exist

  "orgs": {
    "total_results": 81,
    "results": [
      {
        "name": "dev",
...
        "counts": {
          "members": 2,
          "draft_products": 0,
          "draft_apis": 0
        },
        "catalogs": {
          "total_results": 3,
          "results": [
            {
              "title": "catalog",
...
              "counts": {
                "members": 2,
                "apps": 0,
                "subscriptions": 0,
                "consumer_orgs": 0,
                "products": 1,
                "product_lifecycle_states": {
                  "staged": 0,
                  "published": 1,
                  "deprecated": 0,
                  "retired": 0,
                  "archived": 0
                },
                "apis": 1
              },
...
              "spaces": {
                "total_results": 2,
                "results": [
                  {
                    "name": "sc0-s0",
                    ...
                    "counts": {
                      "products": 1,
                      "apis": 1
                    },
...

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

No branches or pull requests

2 participants