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

Added version 9 of API and new worker metrics #143

Merged
merged 11 commits into from
Aug 24, 2023

Conversation

oliveromahony
Copy link
Contributor

@oliveromahony oliveromahony commented Aug 10, 2023

Proposed changes

Added support for NGINX Plus API version 9

Added new workers metrics /api/9/workers

[
  {
    "id": 0,
    "pid": 13,
    "connections": {
      "accepted": 81,
      "dropped": 0,
      "active": 1,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 100,
        "current": 1
      }
    }
  },
  {
    "id": 1,
    "pid": 8,
    "connections": {
      "accepted": 81,
      "dropped": 0,
      "active": 0,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 201,
        "current": 0
      }
    }
  },
  {
    "id": 2,
    "pid": 9,
    "connections": {
      "accepted": 82,
      "dropped": 0,
      "active": 0,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 119,
        "current": 0
      }
    }
  },
  {
    "id": 3,
    "pid": 10,
    "connections": {
      "accepted": 82,
      "dropped": 0,
      "active": 0,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 143,
        "current": 0
      }
    }
  },
  {
    "id": 4,
    "pid": 11,
    "connections": {
      "accepted": 81,
      "dropped": 0,
      "active": 0,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 156,
        "current": 0
      }
    }
  }
]

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@oliveromahony oliveromahony requested a review from a team as a code owner August 10, 2023 13:07
@github-actions github-actions bot added the tests Pull requests that update tests label Aug 10, 2023
@oliveromahony oliveromahony changed the title Draft: added version 9 of API and new worker metrics Added version 9 of API and new worker metrics Aug 15, 2023
oliveromahony and others added 4 commits August 15, 2023 18:00
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](goreleaser/goreleaser-action@336e299...3fa32b8)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@fac708d...93397be)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.6 to 3.0.7.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@1360a34...7d90b4f)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
client/nginx.go Outdated Show resolved Hide resolved
client/nginx.go Show resolved Hide resolved
docker/test.conf Outdated Show resolved Hide resolved
docker/nginx.conf Outdated Show resolved Hide resolved
@github-actions github-actions bot added the documentation Pull requests/issues for documentation label Aug 24, 2023
@lucacome lucacome merged commit 80901b0 into nginxinc:main Aug 24, 2023
12 checks passed
@lucacome lucacome added the enhancement Pull requests for new features/feature enhancements label Aug 24, 2023
@oliveromahony oliveromahony deleted the api-9 branch August 28, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation enhancement Pull requests for new features/feature enhancements tests Pull requests that update tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants