Closed TakumaNakagame closed 5 years ago
Hi @TakumaNakagame, Thank you for reporting.
It looks like expected behavior. The second value is a timestamp.
Metrics Format(ref: https://prometheus.io/docs/instrumenting/exposition_formats/):
metric_name [
"{" label_name "=" `"` label_value `"` { "," label_name "=" `"` label_value `"` } [ "," ] "}"
] value [ timestamp ]
Hi @yamamoto-febc, Thank you for confirmation!
The format was my mistake. Thank you for teaching me!
However, the value is not displayed as it is. The value is taken in SakuraCloud-Exporter.
sakuracloud_nfs_info
is OK.
sakuracloud_nfs_free_disk_size
is NG.
Can you view data in a Graph view (not a Console view)? If so, it is Prometheus's default behavior.
Please see this comment.
This is as timestamps are set on the data which will be at least 10 minutes old, and the console view only looks back 5 minutes.
In addition, you can also set time/timestamp parameter.
ref: https://github.com/prometheus/prometheus/pull/4764
Please try it.
Oops! Displayed in graph view! This is what I did not know.
Thank you! My problem is solved. It was saved.
NP:smile: I'm going to close this.
Problem
Prometheus reads one value for a metric. However, some metrics in SakuraCloud Exporter output two values.
For example
and more.
Therefore, you can not refer data from Prometheus.
Behavior to be sought
One value is output from SakuraCloud Exporter, and can be referenced from Prometheus.
Example (this is from Node Exporter)
Environment
Prometheus:
SakuraCloud Exporter