graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04137
Re: [Question #229817]: Graphite lost data
Question #229817 on Graphite changed:
https://answers.launchpad.net/graphite/+question/229817
Baoxguang gave more information on the question:
I am so sorry that when I extract the metadata from my whisper,it also did only stored the last data,Is my java code wrong?My java code is simple as below:
private static void send(){
try {
Socket socket;
PrintWriter out;
socket = new Socket("127.0.0.1", 2003);
out = new PrintWriter(socket.getOutputStream());
System.out.println("Conntectd already...");
String timeStamp = "" + System.currentTimeMillis() / 1000;
int value= (int)((Math.random()* 1000)/100.0);
String info = "test.mine " + value + " " + timeStamp ;
out.println(info);
out.flush();
System.out.println("the info is:" + info);
out.close();
socket.close();
} catch (Exception e) {
System.out.println("Wrong!" + e.getMessage());
e.printStackTrace();
}finally{
}
}
and my Storage-Schemas.conf is:
[test]
pattern = ^test\..*
retentions = 10:2160,60:10080,600:262974
xFilesFactor = 0
Thank you for your help!
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.