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

No xrate function available #1

Closed
matejzero opened this Issue Apr 24, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@matejzero
Copy link

matejzero commented Apr 24, 2018

As said in the Grafana issue, xrate function doesn't exists when I compile your fork.

go get github.com/free/prometheus
git checkout xrate_v2.2.1
make build

Looking at the version output, it's the right version:

# ./prometheus --version
prometheus, version 2.2.1 (branch: xrate_v2.2.1, revision: f3e781a5af599a76edbf1c2f61a4a57ce48b371d)

When trying to run xrate function, I get the error unknown function:

rate(node_cpu{instance="host"}[60s])
Error executing query: parse error at char 6: unknown function with name "xrate"
@free

This comment has been minimized.

Copy link
Owner

free commented Apr 24, 2018

How are you running the query? I tried by going to localhost:9090 and running the query there.

Regardless, I just figured out how to build binaries for the full range of platforms that Prometheus supports (just do promu crossbuild) and I'll make a proper release with what are (at least for me) working binaries.

@free

This comment has been minimized.

Copy link
Owner

free commented Apr 24, 2018

Just finished an official (whatever that means) release of Prometheus 2.2.1 + xrate(): https://github.com/free/prometheus/releases/tag/v2.2.1

As the name suggests, this is exactly Prometheus release 2.2.1 plus the xrate()/xincrease()/xdelta() functions.

@matejzero

This comment has been minimized.

Copy link
Author

matejzero commented Apr 25, 2018

I was running my queries the same way you did. Weird:)

Anyway, I downloaded your release and it's working now, yeey. Off to check some graphs with the new function.

Thanks for the help

@matejzero matejzero closed this Apr 25, 2018

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