newrelic-experimental / gitlab

Gitlab exporters to send metrics,logs,traces to New Relic
9 stars 6 forks source link

Change of time format possible? #16

Closed magicofit closed 1 year ago

magicofit commented 1 year ago

Hi,

i would like to calculate with datetimes inside NRQL:

is it possible, to change format of: -commit.authored_date -commit.committed_date -commit.created_at -finished_at -pipeline.created_at -pipeline.updated_at -started_at ect.

to unix-timestamps? than it would be easier to write custom durations inside NR between this values.

Thanks!

dpacheconr commented 1 year ago

Let me have look what can be done and get back to you

dpacheconr commented 1 year ago

I have published new release 1.0.6, if you set GLAB_CONVERT_TO_TIMESTAMP to true, it should convert your datetime values into unix timestamps