You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
kilteer, MachEleven, harshpandit007, chrsblck, philipjscott, n1kk0, nealey, wdbasson, tianon, geronio12, and 76 more reacted with thumbs up emoji
wdbasson, tianon, maksim77, 0x63lv, xamebax, DamianFekete, arj22, gobeli, asd01248967, dmytro-pro, and 12 more reacted with hooray emoji
tianon, dash-rai, DamianFekete, beriba, pkesso, slamp, dmytro-pro, Bluecrafter35, Antonio-C89, mtompkins, and 17 more reacted with heart emoji
DamianFekete, dmytro-pro, snukone, mtompkins, vuxuanlai, pauloeliasjr, dbirks, cfoltran, Alex8Efremov, bhadreswar-ghuku, and ehrenfeu reacted with rocket emoji
deiv061, kirelagin, lfuelling, pauloeliasjr, dbirks, dorSharon1, cfoltran, and Alex8Efremov reacted with eyes emoji
All reactions
@ResolveWang
@Rekhs123
If you use Prometheus, Grafana wants metrics in Milliseconds.
For example : process_start_time_seconds * 1000
Then you can put your metrics in Date Format.
@marefr
Yes, sorry, I was wrong and thought it was a column from a metric label, but it turn out this is indeed the value.
JIC, what if it would have been a label and not the value itself?
Hi, I want to show uptime of my container on grafana, for that I have used something like
(( container_start_time*1000 )) and it is working absolutely fine. My problem is, as soon as this container is down, grafana is showing 63 years/122 years for this metrics.
I am using prometheus, cadvisor and grafana.
Any Help..!!
Putting Date and Time on a dashboard seems pretty fundamental. How do I do that? I used a singlestat to get Time of last point, of some arbitrary metric, which returns it in some non human readable format. I select YYYY-MM-DD HH:mm:ss for Unit, which converts it to just time. I assume it is because it is so recent? Why would Grafana make that kind of decision. If I wanted just time, there should be a HH:mm:ss selection! This thread goes back and forth I never see a definitive answer yet it is closed.
Using 6.4.1.
Hi .i solved this problem.
HUAWEI-ENTITY-EXTENT-MIB::hwEntityManufacturedDate.67108873 = STRING: 2018-11-19,0:0:0.0
HELP hwEntityManufacturedDate This object indicates the manufacturing date of an entity.
The verification obtained by snmp is not accurate, let's correct it.
[root@TDengine generator]# date -d@1542585600 +"%Y-%m-%d %H:%M:%S"
2018-11-19 08:00:00
CST + 8:00:00 (28800s)
max((hwEntityManufacturedDate{instance="x.x.x.x"}) - 28800 ) * 1000
Thanks.
In the process, I've learned that:
1) I need to know my config at Collector creation time; I can't create
a stub Collector and have it read the config - That way leads to
panics that I don't understand /shrug
2) Prometheus will take the timestamp (a simple in), *force* me to
cast it to a float64, and then display it in scientific notation
3) Grafana can and will handle this stupidity, but not before adding
its own: it assumes timestamps are in milliseconds, so I have to take
my field/value, multiply it by 1000, and then select a Date type, per
a whole bunch of threads where people want to do exactly that,
e.g. grafana/grafana#6297