我对普罗米修斯很陌生,所以这可能是一个愚蠢的问题 - 但就这样吧。
当我请求 node_memory_Active_bytes 和 node_memory_MemTotal_bytes 时,我得到:
node_memory_Active_bytes{instance="10.1.4.9:9100",job="node-exporter"} 3257815040
(..and..)
node_memory_MemTotal_bytes{instance="10.1.4.9:9100",job="node-exporter"} 16509550592
Run Code Online (Sandbox Code Playgroud)
但是,在盒子上,如果我运行free -b,我会得到以下信息:
$ free -b
total used free shared buff/cache available
Mem: 16509550592 2264915968 6787731456 59121664 7456903168 14140530688
Swap: 0 0 0
Run Code Online (Sandbox Code Playgroud)
我正在努力将普罗米修斯的内存视图与实际机器的视图进行映射。我确信我一定做错了什么,但我不知道是什么。总体匹配,但免费
package matthew.datacollector;
import android.app.Activity;
import android.view.View;
import android.widget.TextView;
import android.widget.RadioGroup;
import android.widget.Toast;
import android.os.Bundle;
public class DataCollectorActivity extends Activity implements RadioGroup.OnCheckedChangeListener, View.OnClickListener {
private TextView tv;
private RadioGroup rg;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
this.tv = (TextView) findViewById(R.id.textView1);
this.rg = (RadioGroup) findViewById(R.id.radioGroup1);
rg.setOnClickListener(this);
}
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
this.tv.setText("lol");
Toast.makeText(this.getApplicationContext(), "hey", Toast.LENGTH_LONG).show();
}
@Override
public void onClick(View v) {
this.tv.setText("lol");
}
}
Run Code Online (Sandbox Code Playgroud)
我不明白为什么这不起作用:/.我希望它能够设置textview的文本,你甚至可以看到我已经在吐司中进行调试.仍然没有,我已经尝试过没有@Overrides了