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

feat: adding ndmp session rest template #2531

Merged
merged 3 commits into from
Feb 2, 2024
Merged

feat: adding ndmp session rest template #2531

merged 3 commits into from
Feb 2, 2024

Conversation

Hardikl
Copy link
Contributor

@Hardikl Hardikl commented Dec 5, 2023

Tested.

@cla-bot cla-bot bot added the cla-signed label Dec 5, 2023
@Hardikl Hardikl marked this pull request as draft December 5, 2023 07:05
@Hardikl Hardikl linked an issue Dec 5, 2023 that may be closed by this pull request
@Hardikl Hardikl mentioned this pull request Dec 7, 2023
@Hardikl
Copy link
Contributor Author

Hardikl commented Feb 1, 2024

As the actual running NDMP session response is not available for testing, I have tested the template against the Swagger default example.

This is example response:

{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "num_records": 1,
  "records": [
    {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "backup_engine": "dump",
      "client_address": "string",
      "client_port": 0,
      "data": {
        "bytes_processed": 5000,
        "connection": {
          "address": "string",
          "port": 18600,
          "type": "local"
        },
        "operation": "backup",
        "reason": "aborted",
        "state": "active"
      },
      "data_path": "/vserver1/vol1",
      "id": "string",
      "mover": {
        "bytes_moved": 645120,
        "connection": {
          "address": "string",
          "port": 18600,
          "type": "local"
        },
        "mode": "read",
        "reason": "aborted",
        "state": "active"
      },
      "node": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "node1",
        "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
      },
      "scsi": {
        "device_id": "string",
        "host_adapter": 0,
        "lun_id": 0,
        "target_id": 0
      },
      "source_address": "string",
      "svm": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "svm1",
        "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
      },
      "tape_device": "nrst0a",
      "tape_mode": "read",
      "uuid": "string"
    }
  ]
}

Prometheus metrics from NDMP session:
image

@Hardikl Hardikl marked this pull request as ready for review February 1, 2024 12:01
@cgrinds cgrinds merged commit c28bbef into main Feb 2, 2024
10 checks passed
@cgrinds cgrinds deleted the hl_ndmp_ch branch February 2, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add NDMP metrics
3 participants