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 idea how I'm supposed to regex values. #1744

Closed
sherl0k opened this issue Feb 25, 2015 · 2 comments
Closed

No idea how I'm supposed to regex values. #1744

sherl0k opened this issue Feb 25, 2015 · 2 comments

Comments

@sherl0k
Copy link

sherl0k commented Feb 25, 2015

I'm having a really difficult time trying to figure out how to use regex to get values of the same series from different hosts. or even values from the same host, for example.

I have a series in influxdb sent from collectd, CPU usage, for instance.

/localhost/cpu-0/cpu-idle
/localhost/cpu-1/cpu-idle
/localhost/cpu-2/cpu-idle

But there's no way to grab all the cores information via regex, I keep getting errors. What is supposed to be the proper regex to return all the values?

I've tried
/localhost/cpu-/cpu-idle
/localhost/cpu-.
/cpu-idle
/localhost/*/cpu-idle

I'm no fool to SQL, or regex. But there's no implementation of sql's LIKE, I can't find a way to fuzzy match these values. Even your examples reference "app.*" but there isn't a single value being collected that splits values out by periods, only slashes. Maybe that's another issue I need to address first?

@dgnorton
Copy link
Contributor

What version of influxdb are you using?

@sherl0k
Copy link
Author

sherl0k commented Feb 26, 2015

I'm running 0.8.8.

I've found that collectd can aggregate before putting items into influxdb, so perhaps that's the better route to take.

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