1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/resources/metadata/influx.yaml
Siarhei Pazdniakou 54f2a0d471
Added go-based influxWriteData step (#2890)
* Added go-based influxWriteData step

* Wrote tests & fixed issues

* Fixed issues

* Created go-based step tests. Fixed issues

* Fixed issues

* Integration test was added

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
2021-06-30 11:18:49 +02:00

74 lines
2.2 KiB
YAML

metadata:
name: influxWriteData
description: Writes metrics to influxdb
longDescription: |
In this step, the metrics are written to the timeseries database [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/)
spec:
inputs:
secrets:
- name: influxAuthTokenId
description: Influxdb token for authentication to the InfluxDB. In 1.8 version use 'username:password' instead.
type: jenkins
params:
- name: serverUrl
type: string
description: Base URL to the InfluxDB server
scope:
- PARAMETERS
- STAGES
- STEPS
- GENERAL
mandatory: true
- name: authToken
type: string
description: Token to authenticate to the Influxdb
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
secret: true
resourceRef:
- name: influxAuthTokenId
type: secret
- type: vaultSecret
paths:
- $(vaultPath)/influxdb
- $(vaultBasePath)/$(vaultPipelineName)/influxdb
- $(vaultBasePath)/GROUP-SECRETS/influxdb
- name: bucket
type: string
description: Name of database (1.8) or bucket (2.0)
scope:
- PARAMETERS
- STAGES
- STEPS
default: "piper"
- name: organization
type: string
description: Name of influx organization. Only for Influxdb 2.0
scope:
- PARAMETERS
- STAGES
- STEPS
- name: dataMap
type: string
description:
"Map of fields for each measurements. It has to be a JSON string.
For example: {'series_1':{'field_a':11,'field_b':12},'series_2':{'field_c':21,'field_d':22}}"
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
- name: dataMapTags
type: string
description:
"Map of tags for each measurements. It has to be a JSON string.
For example: {'series_1':{'tag_a':'a','tag_b':'b'},'series_2':{'tag_c':'c','tag_d':'d'}}"
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: false