question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service metrics in json format

See original GitHub issue

Hello! Endpoint /api/v1/metrics/{{service}}/ produces response like this:

Microsoft.AspNetCore.Hosting/failed-requests{instance="api_70f4d32f-5"} 0
System.Runtime/gen-1-gc-count{instance="api_70f4d32f-5"} 0
Microsoft.AspNetCore.Hosting/current-requests{instance="api_70f4d32f-5"} 0
Microsoft.AspNetCore.Hosting/total-requests{instance="api_70f4d32f-5"} 0
Microsoft.AspNetCore.Hosting/requests-per-second{instance="api_70f4d32f-5"} 0

I found this format difficult to parse. Would you mind making it more json-way, please?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidfowlcommented, Aug 11, 2021

It’s currently the Prometheus format I believe

0reactions
philliphoffcommented, Sep 30, 2021

Closing per #1130.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON format
In a CloudWatch metric stream that uses the JSON format, each Kinesis Data Firehose record contains multiple JSON objects separated by a newline...
Read more >
Transforming remote JSON into Prometheus metrics
Have you ever thought to turn JSON objects into Prometheus format metrics? The prometheus-json-exporter scrapes remote JSON by JSONPath.
Read more >
Adding metric descriptors to the metrics JSON file
Specify the full path to the metrics.json file for the Big Match service that you want to update. For example: ./addTableMetrics.py -t ...
Read more >
Prometheus json metrics
I have setup the Prometheus blackbox_exporter to monitor that this endpoint returns 200 Ok however I'd ideally like to get those metrics too....
Read more >
Metric streams output formats - Amazon CloudWatch
The data in a CloudWatch metric stream can be in the JSON format or the OpenTelemetry format. Currently, the version of OpenTelemetry format...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found