Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upa issue about prometheus metrics timestamp and for great response ! thank u very much ! #4152
Comments
This comment has been minimized.
This comment has been minimized.
|
I think pushing with timestamp is rejected since pushgateway version More info can be found here in this issue prometheus/pushgateway#109 |
brian-brazil
closed this
May 8, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
annan211 commentedMay 8, 2018
•
edited
#Hi , everybody ,I have a big problem about Prometheus when I send some metrics data to pushgateway
With simpleclient_pushgateway java API 0.3.0
The problem is I can not send metrics data with timestamp , but I need it so much .
I have coverd DropwizardExports class with PromDropwizardExports and override fromCounter / fromGauge / fromHistogram / fromTimers and
Add timestamp to Sample
Ex :
List fromCounter(String dropwizardName, Counter counter) {
String name = sanitizeMetricName(dropwizardName);
Sample sample = new Sample(name, new ArrayList(), new ArrayList(),
(new Long(counter.getCount())).doubleValue(),System.currentTimeMillis());
LOGGER.info("Counter Sample is : " + sample);
return Arrays.asList(new MetricFamilySamples(name, Type.GAUGE, getHelpMessage(dropwizardName, counter),
Arrays.asList(sample)));
}
, but it don not work , ti is very important ,I wait for your great response !