{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/client_ruby/issues/30","repository_url":"https://api.github.com/repos/prometheus/client_ruby","labels_url":"https://api.github.com/repos/prometheus/client_ruby/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/client_ruby/issues/30/comments","events_url":"https://api.github.com/repos/prometheus/client_ruby/issues/30/events","html_url":"https://github.com/prometheus/client_ruby/issues/30","id":174294092,"number":30,"title":"/metrics returning JSON","user":{"login":"deepthawtz","id":31030,"avatar_url":"https://avatars.githubusercontent.com/u/31030?v=3","gravatar_id":"","url":"https://api.github.com/users/deepthawtz","html_url":"https://github.com/deepthawtz","followers_url":"https://api.github.com/users/deepthawtz/followers","following_url":"https://api.github.com/users/deepthawtz/following{/other_user}","gists_url":"https://api.github.com/users/deepthawtz/gists{/gist_id}","starred_url":"https://api.github.com/users/deepthawtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepthawtz/subscriptions","organizations_url":"https://api.github.com/users/deepthawtz/orgs","repos_url":"https://api.github.com/users/deepthawtz/repos","events_url":"https://api.github.com/users/deepthawtz/events{/privacy}","received_events_url":"https://api.github.com/users/deepthawtz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-31T14:50:19Z","updated_at":"2016-08-31T15:29:09Z","closed_at":"2016-08-31T15:26:10Z","body":"```json\r\n[\r\n  {\r\n    \"baseLabels\": {\r\n      \"__name__\": \"http_requests_total\"\r\n    },\r\n    \"docstring\": \"A counter of the total number of HTTP requests made.\",\r\n    \"metric\": {\r\n      \"type\": \"counter\",\r\n      \"value\": [\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/metrics\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": 6\r\n        },\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": 11\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  {\r\n    \"baseLabels\": {\r\n      \"__name__\": \"http_request_durations_total_microseconds\"\r\n    },\r\n    \"docstring\": \"The total amount of time spent answering HTTP requests (microseconds).\",\r\n    \"metric\": {\r\n      \"type\": \"counter\",\r\n      \"value\": [\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/metrics\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": 4057\r\n        },\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": 27355\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  {\r\n    \"baseLabels\": {\r\n      \"__name__\": \"http_request_durations_microseconds\"\r\n    },\r\n    \"docstring\": \"A histogram of the response latency (microseconds).\",\r\n    \"metric\": {\r\n      \"type\": \"histogram\",\r\n      \"value\": [\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/metrics\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": {\r\n            \"0.5\": 609,\r\n            \"0.9\": 652,\r\n            \"0.99\": 652\r\n          }\r\n        },\r\n        {\r\n          \"labels\": {\r\n            \"method\": \"get\",\r\n            \"path\": \"/\",\r\n            \"code\": \"200\"\r\n          },\r\n          \"value\": {\r\n            \"0.5\": 1492,\r\n            \"0.9\": 1628,\r\n            \"0.99\": 1628\r\n          }\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  {\r\n    \"baseLabels\": {\r\n      \"__name__\": \"http_exceptions_total\"\r\n    },\r\n    \"docstring\": \"A counter of the total number of exceptions raised.\",\r\n    \"metric\": {\r\n      \"type\": \"counter\",\r\n      \"value\": []\r\n    }\r\n  }\r\n]\r\n```\r\n\r\nI've included Prometheus rack middleware in a new Rails app and /metrics returns JSON. Is this normal/expected?"},"comment":{"url":"https://api.github.com/repos/prometheus/client_ruby/issues/comments/243801945","html_url":"https://github.com/prometheus/client_ruby/issues/30#issuecomment-243801945","issue_url":"https://api.github.com/repos/prometheus/client_ruby/issues/30","id":243801945,"user":{"login":"deepthawtz","id":31030,"avatar_url":"https://avatars.githubusercontent.com/u/31030?v=3","gravatar_id":"","url":"https://api.github.com/users/deepthawtz","html_url":"https://github.com/deepthawtz","followers_url":"https://api.github.com/users/deepthawtz/followers","following_url":"https://api.github.com/users/deepthawtz/following{/other_user}","gists_url":"https://api.github.com/users/deepthawtz/gists{/gist_id}","starred_url":"https://api.github.com/users/deepthawtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepthawtz/subscriptions","organizations_url":"https://api.github.com/users/deepthawtz/orgs","repos_url":"https://api.github.com/users/deepthawtz/repos","events_url":"https://api.github.com/users/deepthawtz/events{/privacy}","received_events_url":"https://api.github.com/users/deepthawtz/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T15:29:09Z","updated_at":"2016-08-31T15:29:09Z","body":"in my `Gemfile.lock` I see `prometheus-client (0.6.0)`"}}
{"actor":{"display_login":"deepthawtz"}}