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

metrics: add metrics and telemetry package #500

Merged
merged 23 commits into from
Jun 7, 2017
Merged

metrics: add metrics and telemetry package #500

merged 23 commits into from
Jun 7, 2017

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Jun 7, 2017

This PR adds telemetry and gives you interesting insights at the health endpoint, for example:

{
  "id": "05ea4842-1615-4f88-abdc-0c34fcee744a",
  "uptime": 889,
  "requests": 131379,
  "responses": 131378,
  "latencies": {
    "0": 131378
  },
  "methods": {
    "GET": {
      "requests": 131378,
      "responses": 131379,
      "latencies": {
        "0": 131378
      }
    }
  },
  "status": {
    "404": {
      "responses": 131378,
      "latencies": {
        "0": 131378
      }
    }
  },
  "sizes": {
    "19": {
      "responses": 131378,
      "latencies": {
        "0": 131378
      }
    }
  },
  "paths": {
    "/": {
      "requests": 131378,
      "responses": 131378,
      "latencies": {
        "0": 131378
      },
      "methods": {
        "GET": {
          "requests": 131378,
          "responses": 131378,
          "latencies": {
            "0": 131378
          }
        }
      },
      "status": {
        "404": {
          "responses": 131378,
          "latencies": {
            "0": 131378
          }
        }
      },
      "sizes": {
        "19": {
          "responses": 131378,
          "latencies": {
            "0": 131378
          }
        }
      }
    },
    "/health": {
      "requests": 1,
      "methods": {
        "GET": {
          "responses": 1
        }
      },
      "status": {},
      "sizes": {}
    }
  }
}

@aeneasr aeneasr changed the title metrics: add telemetry update metrics: add metrics and telemetry package Jun 7, 2017
@aeneasr aeneasr added the feat New feature or request. label Jun 7, 2017
@aeneasr aeneasr merged commit a04e6f2 into master Jun 7, 2017
@aeneasr aeneasr deleted the stats branch June 7, 2017 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant