phsmith / rundeck_exporter

Rundeck Metrics Exporter
GNU General Public License v3.0
58 stars 25 forks source link

rundeck_project_execution_duration_seconds #78

Closed kpolucas closed 10 months ago

kpolucas commented 10 months ago

Hi phsmith

Just a little thing that I notice when exporting the metrics to Grafana. Could it be that 'rundeck_project_execution_duration_seconds' is really in milliseconds?

For example. I got some metrics like

rundeck_project_execution_duration_seconds{execution_id="xxxx",execution_type="scheduled",instance_address="xxx:xxx",job_group="Scheduled",job_id="xx-xx-xx-xx",job_name="xxxx policy",project_name="xxxx",user="xxx"} 47907.0

That -> 47907 in milliseconds map perfectly with the Average duration for that job. Maybe I'm just doing something wrong.

phsmith commented 10 months ago

Hi @kpolucas, since v2.5.2 that metric has been fixed to return in seconds instead of milliseconds. You can check it in the changelog here.

kpolucas commented 10 months ago

You are right. im viewing an old implementation. Sorry to bother.

phsmith commented 10 months ago

No problem, you can be in touch at any time.