Skip to content

Adding embedded status webserver#18

Merged
ehsandeep merged 5 commits intomasterfrom
issue-17-web-json
Jan 12, 2023
Merged

Adding embedded status webserver#18
ehsandeep merged 5 commits intomasterfrom
issue-17-web-json

Conversation

@Mzack9999
Copy link
Copy Markdown
Member

@Mzack9999 Mzack9999 commented Jan 9, 2023

Description

This PR adds an embedded web server listening by default on http://127.0.0.1:63636 that exposes at the endpoint /metrics info in json format about internal counters:

$ curl http://localhost:63636/status
{"requests":10,"errors":1,"startedAt":"2023-01-09T17:38:02.6671044+01:00","rps":0}

@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Jan 9, 2023
@Mzack9999 Mzack9999 self-assigned this Jan 9, 2023
@Mzack9999 Mzack9999 requested a review from ehsandeep January 11, 2023 12:18
@Mzack9999
Copy link
Copy Markdown
Member Author

Mzack9999 commented Jan 11, 2023

The functionality will be propagated to all tools using clistats, so the status will be available at http://localhost:63636/metrics. Port mapping is configurable, if the port is busy a new random TCP one is picked and visible within the clistats.Options

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement Most issues will probably ask for additions or changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose stats as json via embedded http server Missing Docker HEALTHCHECK Nuclei stats display upon keypress (space)

3 participants