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

data point not found #1436

Closed
ringtail opened this Issue Mar 1, 2016 · 17 comments

Comments

Projects
None yet
5 participants
@ringtail
Copy link

ringtail commented Mar 1, 2016

Here is my metrics api

# HELP etcd_rafthttp_message_sent_failed_total The total number of failed messages sent. 
# TYPE etcd_rafthttp_message_sent_failed_total counter
etcd_rafthttp_message_sent_failed_total{msgType="MsgVote",remoteID="d4a60b0448bfed3e",sendingType="pipeline"} 1

but I got No datapoints found in prometheus.

version:prometheus-0.16.1.linux-amd64
@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 1, 2016

I try to check ntp service and it is still not work.

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 1, 2016

Can you describe in more detail what you have done to get that error message? Also, can you describe what kind of investigation/troubleshooting you have already applied? What do you mean by "I try to check ntp service"?

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Mar 1, 2016

@ringtail Have you verified that both machines have the same time configured (is that what you mean by "check ntp service"?)? Otherwise the sample times might be off and you'd have to change the end time in your graph to see anything.

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 4, 2016

yes I have checked the ntp service and the result is like this.

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 4, 2016

here is my code without sdk

/*
 * jenkinsNodeBase
 * https://github.com//jenkinsnodebase
 *
 * Copyright (c) 2016
 * Licensed under the MIT license.
 */

'use strict';
var express = require('express');
var app = express();

// respond with "hello world" when a GET request is made to the homepage
app.get('/metrics', function(req, res) {
  res.format({
    'text/plain': function(){
      res.send(
      '# HELP suminfo_proxytimes The total number of failed messages sent. \n'+
      '# TYPE suminfo_proxytimes counter\n' +
      'suminfo_proxytimes{msgType="MsgVote",remoteID="d4a60b0448bfed3e",sendingType="pipeline"} 1');
    }
  })
});

app.listen(3000, function () {
      console.log('Example app listening on port 3000!');
});
@grobie

This comment has been minimized.

Copy link
Member

grobie commented Mar 4, 2016

Is prometheus able to scrape your server? Is your instance listed on the /status as healthy? And if you click on the metrics link, does it include all the metrics you expect?

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 4, 2016

yes. prometheus can scrape my server.the node is listed and healthy. all metrics can list.

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Mar 4, 2016

Can you paste the query you were executing and expecting to return data?

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 4, 2016

simply set the key and try to test data point

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Mar 4, 2016

Ah, now I see your first image as well. In your code example, you use a lower case i suminfo_proxytime, but that's probably not it.

Can you select the metric from the drop-down list next to the execute button?

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 4, 2016

this is no item named suminfo_proxytime

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 4, 2016

How does the Status tab on your Prometheus server look like? You should see which targets it scrapes, and you can click on the endpoints to see what is being scraped.

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 5, 2016

here is the status tab and data sources

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 5, 2016

That looks good.

Completely different idea: Looking at your node.js code, it looks like you are missing a "\n" at the end of your input. That would explain it (but should also create a log message).

@ringtail

This comment has been minimized.

Copy link
Author

ringtail commented Mar 6, 2016

@beorn7 awesome!!!!!!! thank you very much!!!!!

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 6, 2016

So I assume it helped? :-)

Please re-open if not.

@beorn7 beorn7 closed this Mar 6, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.