-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.121.1
Main idea: get information about different stages in pipeline reported to InfluxDB.
It will be good if there will be automatic PointGenerator that collects information about stages in pipeline build and then prepares list of BatchPoints:
pipeline_data:
project_name | build_number | stage | time |
---|---|---|---|
pipeline1 | 14 | init | 3 |
pipeline1 | 14 | checkout | 14 |
pipeline1 | 14 | compile | 40 |
pipeline1 | 14 | deploy | 15 |
In current implementation of plugin I am trying to do this using CustomDataMap, but I can't prepare such list of BatchPoints, because if I add CustomDataMap with key "pipeline_data", I can only add one point with any amount of fields, so possible structure now is:
pipeline_data:
project_name | build_number | stage_init | stage_checkout | stage_compile | stage_deploy |
---|---|---|---|---|---|
pipeline1 | 14 | 3 | 14 | 40 | 15 |
Such structure is not generic, so if I have different pipelines with different stages, my InfluxDB table will have fields from all stages of all pipelines.
In this request I propose to add generic mechanism for sending list of data, so I can collect all necessary information in pipeline script and then publish to InfluxDB. However, adding default PointGenerator for pipeline stages time will be also helpful (people will be able to see pipeline stats without modification of their pipelines at all).
- is duplicated by
-
JENKINS-54507 pipeline_data is not pushing to influxdb
- Closed
-
JENKINS-69021 Error sending array to influx
- Closed