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

Query result may incomplete #14

Closed
Wing924 opened this issue Apr 24, 2018 · 4 comments
Closed

Query result may incomplete #14

Wing924 opened this issue Apr 24, 2018 · 4 comments

Comments

@Wing924
Copy link
Contributor

Wing924 commented Apr 24, 2018

It's not clear form README, but I read the code and found that the server_groups means the HA pair of prometheus, which run with the same config. And current implementation is reading from only one server in the server group.
If I'm wrong, please correct me and ignore below.

Because prometheus don't support clustering or bulk import, it may lack some time series data due to server temporally down or reloading config. The best practice is running 2 prometheus with same config to provide HA. The single prometheus may lack some data in query result, but we can get all data if we combined the HA pair result.

Because current implementation read from only one server in the server group, the result may be incomplete. I suggest make it read at least 2 servers in server group and combine the result.

jacksontj added a commit that referenced this issue Apr 24, 2018
@jacksontj
Copy link
Owner

First off, thanks for reporting the issue! Documentation is important, but sometimes hard to get right on the first go around.

It's not clear form README, but I read the code and found that the server_groups means the HA pair of prometheus, which run with the same config. And current implementation is reading from only one server in the server group.

Partially correct. A servergroup is a set of prometheus hosts which are "configured the same". Promxy will actually query every host in the server group (until #3 is done) to merge the datapoints together.

The best practice is running 2 prometheus with same config to provide HA.

Exactly, and this is what a ServerGroup is -- a group of prometheus servers with the same config.

I've opened #15 with a FAQ entry to address this, mind taking a look to make sure its clear?

@Wing924
Copy link
Contributor Author

Wing924 commented Apr 24, 2018

@jacksontj
That's great! Thank you! This tool is what I'm looking for.

@jacksontj
Copy link
Owner

glad to hear it! If you have any other questions/concerns/comments definitely let me know! I'll go ahead and merge in that README update.

jacksontj added a commit that referenced this issue Apr 24, 2018
@darcydai
Copy link

 😂 This tool is what I'm looking for too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants