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.

How should we report missing metrics

See original GitHub issue

If you have a time series (example blob storage exporting metric transactions) you will receive a set of results as follows:

"timeseries": [ { "metadatavalues": [], "data": [ { "timeStamp": "2019-05-09T15:34:00Z" }, { "timeStamp": "2019-05-09T15:35:00Z" }, { "timeStamp": "2019-05-09T15:36:00Z" }, { "timeStamp": "2019-05-09T15:37:00Z" }, { "timeStamp": "2019-05-09T15:38:00Z" }, { "timeStamp": "2019-05-09T15:39:00Z" }, { "timeStamp": "2019-05-09T15:40:00Z" }, { "timeStamp": "2019-05-09T15:41:00Z" }, { "timeStamp": "2019-05-09T15:42:00Z" }, { "timeStamp": "2019-05-09T15:43:00Z", "total": 37 }, { "timeStamp": "2019-05-09T15:44:00Z" }, { "timeStamp": "2019-05-09T15:45:00Z" }, { "timeStamp": "2019-05-09T15:46:00Z" }, { "timeStamp": "2019-05-09T15:47:00Z" }, { "timeStamp": "2019-05-09T15:48:00Z" }, { "timeStamp": "2019-05-09T15:49:00Z" }, { "timeStamp": "2019-05-09T15:50:00Z" }, { "timeStamp": "2019-05-09T15:51:00Z" }, { "timeStamp": "2019-05-09T15:52:00Z" }, { "timeStamp": "2019-05-09T15:53:00Z" }, { "timeStamp": "2019-05-09T15:54:00Z" }, { "timeStamp": "2019-05-09T15:55:00Z" }, { "timeStamp": "2019-05-09T15:56:00Z" }, { "timeStamp": "2019-05-09T15:57:00Z" }, { "timeStamp": "2019-05-09T15:58:00Z" }, { "timeStamp": "2019-05-09T15:59:00Z" }, { "timeStamp": "2019-05-09T16:00:00Z" }, { "timeStamp": "2019-05-09T16:01:00Z" }, { "timeStamp": "2019-05-09T16:02:00Z" }, { "timeStamp": "2019-05-09T16:03:00Z" }, { "timeStamp": "2019-05-09T16:04:00Z" }, { "timeStamp": "2019-05-09T16:05:00Z" }, { "timeStamp": "2019-05-09T16:06:00Z" }, { "timeStamp": "2019-05-09T16:07:00Z" }, { "timeStamp": "2019-05-09T16:08:00Z" }, { "timeStamp": "2019-05-09T16:09:00Z" }, { "timeStamp": "2019-05-09T16:10:00Z" }, { "timeStamp": "2019-05-09T16:11:00Z" }, { "timeStamp": "2019-05-09T16:12:00Z" }, { "timeStamp": "2019-05-09T16:13:00Z" }, { "timeStamp": "2019-05-09T16:14:00Z" }, { "timeStamp": "2019-05-09T16:15:00Z" }, { "timeStamp": "2019-05-09T16:16:00Z" }, { "timeStamp": "2019-05-09T16:17:00Z" }, { "timeStamp": "2019-05-09T16:18:00Z" }, { "timeStamp": "2019-05-09T16:19:00Z" }, { "timeStamp": "2019-05-09T16:20:00Z" }, { "timeStamp": "2019-05-09T16:21:00Z" }, { "timeStamp": "2019-05-09T16:22:00Z" }, { "timeStamp": "2019-05-09T16:23:00Z" }, { "timeStamp": "2019-05-09T16:24:00Z" }, { "timeStamp": "2019-05-09T16:25:00Z" }, { "timeStamp": "2019-05-09T16:26:00Z" }, { "timeStamp": "2019-05-09T16:27:00Z" }, { "timeStamp": "2019-05-09T16:28:00Z" }, { "timeStamp": "2019-05-09T16:29:00Z" }, { "timeStamp": "2019-05-09T16:30:00Z" }, { "timeStamp": "2019-05-09T16:31:00Z" }, { "timeStamp": "2019-05-09T16:32:00Z" }, { "timeStamp": "2019-05-09T16:33:00Z" } ] } ]

However when promitor queries this it returns -1 for any query that doesn’t return a value.

I believe it makes more sense to return 0 in this case as advised by prometheus “Avoid missing metrics” https://prometheus.io/docs/practices/instrumentation/#counter-vs-gauge-summary-vs-histogram

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tomkerkhovecommented, May 9, 2019

I’ll leave it open for a while so people can chime in and provide their feedback, is that ok @datadot?

0reactions
tomkerkhovecommented, Sep 4, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Report Performance with Missing or Uncertain Data
The first step is to identify why the data is missing or uncertain, and how it affects your performance indicators and metrics. Is...
Read more >
The Case of the Missing Metrics
The Case of the Missing Metrics · Assign responsibility. · Establish consistent metrics. · Trust, but verify. · Review metrics jointly. · Reward...
Read more >
How to Deal with Missing Data - Master's in Data Science
Missing data can skew anything for data scientists, from economic analysis to clinical trials. After all, any analysis is only as good as...
Read more >
Missing metrics
Use missing metrics in SodaCL checks to detect missing values in a dataset.
Read more >
Analytics - missing metrics and how to calculate them
To track this, I would use a user export (all time) and see if they gave contributed at least one post. timcavey. 1...
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