Comments (9)
What's in your Redis for data?
Sent from not my laptop
abe.is
On May 6, 2014, at 6:42 AM, Christian Eichelmann [email protected] wrote:
Hi all,
I had a look at Skyline for a few days now and only can get it to work partially. The most annoying thing are the hundreds of Tracebacks in the analyzer logfile like this one
ERROR:root:Algorithm error: Traceback (most recent call last):
File "/home/christian/Source/git/github/skyline/src/analyzer/algorithms.py", line 289, in run_selected_algorithm
ensemble = [globals()algorithm for algorithm in ALGORITHMS]
File "/home/christian/Source/git/github/skyline/src/analyzer/algorithms.py", line 103, in first_hour_average
t = tail_avg(timeseries)
File "/home/christian/Source/git/github/skyline/src/analyzer/algorithms.py", line 45, in tail_avg
t = (timeseries[-1][1] + timeseries[-2][1] + timeseries[-3][1]) / 3
TypeError: unsupported operand type(s) for /: 'str' and 'int'
Can someone give me a hint whats going wrong? Because I have no idea what to do at this point.—
Reply to this email directly or view it on GitHub.
from skyline.
For Example:
redis 127.0.0.1:6379> GET metrics.removed_hostname.interface-eth6.if_errors.rx
"\x92\xcbA\xd4\xda8Ke\xc2\x8f\xa10\x92\xcbA\xd4\xda8Ze\xc2\x8f\xa10\x92\xcbA\xd4\xda8ie\xc2\x8f\xa10\x92\xcbA\xd4\xda8xe\xc2\x8f\xa10\x92\xcbA\xd4\xda8\x87e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\x96e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xa5e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xb4e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xc3e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xd2e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xe1e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xf0e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xffe\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x0ee\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x1de\xc2\x8f\xa10\x92\xcbA\xd4\xda9,e\xc2\x8f\xa10\x92\xcbA\xd4\xda9;e\xc2\x8f\xa10\x92\xcbA\xd4\xda9Je\xc2\x8f\xa10\x92\xcbA\xd4\xda9Ye\xc2\x8f\xa10\x92\xcbA\xd4\xda9he\xc2\x8f\xa10\x92\xcbA\xd4\xda9we\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x86e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x95e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xa4e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xb3e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xc2e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xd1e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xe0e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xefe\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xfee\xc2\x8f\xa10\x92\xcbA\xd4\xda:\re\xc2\x8f\xa10\x92\xcbA\xd4\xda:\x1ce\xc2\x8f\xa10\x92\xcbA\xd4\xda:+e\xc2\x8f\xa10\x92\xcbA\xd4\xda::e\xc2\x8f\xa10\x92\xcbA\xd4\xda:Ie\xc2\x8f\xa10\x92\xcbA\xd4\xda:Xe\xc2\x8f\xa10\x92\xcbA\xd4\xda:ge\xc2\x8f\xa10\x92\xcbA\xd4\xda:ve\xc2\x8f\xa10\x92\xcbA\xd4\xda:\x85e\xc2\x8f\xa10"
from skyline.
Can you unpack the MessagePack for me please?
Sent from not my laptop
abe.is
On May 6, 2014, at 6:58 AM, Christian Eichelmann [email protected] wrote:
For Example:
redis 127.0.0.1:6379> GET metrics.removed_hostname.interface-eth6.if_errors.rx
"\x92\xcbA\xd4\xda8Ke\xc2\x8f\xa10\x92\xcbA\xd4\xda8Ze\xc2\x8f\xa10\x92\xcbA\xd4\xda8ie\xc2\x8f\xa10\x92\xcbA\xd4\xda8xe\xc2\x8f\xa10\x92\xcbA\xd4\xda8\x87e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\x96e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xa5e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xb4e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xc3e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xd2e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xe1e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xf0e\xc2\x8f\xa10\x92\xcbA\xd4\xda8\xffe\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x0ee\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x1de\xc2\x8f\xa10\x92\xcbA\xd4\xda9,e\xc2\x8f\xa10\x92\xcbA\xd4\xda9;e\xc2\x8f\xa10\x92\xcbA\xd4\xda9Je\xc2\x8f\xa10\x92\xcbA\xd4\xda9Ye\xc2\x8f\xa10\x92\xcbA\xd4\xda9he\xc2\x8f\xa10\x92\xcbA\xd4\xda9we\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x86e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\x95e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xa4e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xb3e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xc2e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xd1e\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xe0e\xc2\x8f\xa10\x92\xcbA\xd4\xda9
xefe\xc2\x8f\xa10\x92\xcbA\xd4\xda9\xfee\xc2\x8f\xa10\x92\xcbA\xd4\xda:\re\xc2\x8f\xa10\x92\xcbA\xd4\xda:\x1ce\xc2\x8f\xa10\x92\xcbA\xd4\xda:+e\xc2\x8f\xa10\x92\xcbA\xd4\xda::e\xc2\x8f\xa10\x92\xcbA\xd4\xda:Ie\xc2\x8f\xa10\x92\xcbA\xd4\xda:Xe\xc2\x8f\xa10\x92\xcbA\xd4\xda:ge\xc2\x8f\xa10\x92\xcbA\xd4\xda:ve\xc2\x8f\xa10\x92\xcbA\xd4\xda:\x85e\xc2\x8f\xa10"
—
Reply to this email directly or view it on GitHub.
from skyline.
Sure :)
(1399382317.59, '0')
from skyline.
btw.: I'm using horizons udp receiver and the data gets send by a tool written by me. Maybe I'm formating the data wrong?
This is the data that is send via udp:
def encode(self, data):
return [
packb((
self.metric.format(**self._transform(item)),
(
(float(self.time.format(**item)),
self.value.format(**item))
)
)) for item in data
]
from skyline.
Your '0' is a string, so you're formatting it wrong. Maybe I should add a type check for the ingest...
Sent from not my laptop
abe.is
On May 6, 2014, at 7:15 AM, Christian Eichelmann [email protected] wrote:
Sure :)
(1399382317.59, '0')
—
Reply to this email directly or view it on GitHub.
from skyline.
If I cast the value to an int and it lands as a integer in redis I get a couple of other errors, saying that int and str can't be concatenated ...
from skyline.
I don't know really know what's going on in your horizon dispatcher, but it should reflect the logic here: https://github.com/etsy/skyline/blob/master/utils/seed_data.py#L43
Can you run seed_data.py successfully?
Sent from not my laptop
abe.is
On May 6, 2014, at 7:43 AM, Christian Eichelmann [email protected] wrote:
If I cast the value to an int and it lands as a integer in redis I get a couple of other errors, saying that int and str can't be concatenated ...
—
Reply to this email directly or view it on GitHub.
from skyline.
Hi,
I found the error in my own code. It was a combination of an additional pair of parantheses and the fact that value and timestamp has to be casted to a float (graphite seems to be more tolerant when using the pickle protocol). Now everything is working without exceptions!
Thanks for your help!
from skyline.
Related Issues (20)
- Flagging as an anomaly even though no algorithms failed HOT 1
- Consistent-hash and skyline HOT 4
- The UDP MessagePack format description in the wiki is wrong HOT 3
- Created puppet module
- centos cannot import calc_lwork from scipy.linalg? HOT 2
- Why hasn't this repo been updated in the last 10 months? HOT 7
- Any data in webapp HOT 2
- Skyline analyzer Crashed on 2k Metric's HOT 6
- AttributeError: 'Series' object has no attribute 'iget' HOT 4
- Question about abillities HOT 5
- GRAPHITE_HOST_PORT HOT 6
- Add UI to indicate missing data in timeseries HOT 2
- Process timeseries that are less than FULL_DURATION anyway...
- Not detecting a dropped connection
- Pickling is insecure in Skyline listener HOT 1
- Documentation for some algorithms is wrong? HOT 1
- Series with periodic HOT 7
- Provide a real build system
- Problem getting data into skyline HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skyline.