I have a RRD created by this command
===
data_sources = [ 'DS:Pprod:GAUGE:10:0:6000',
'DS:Pcons:GAUGE:10:0:6000',
'DS:Pdiff:GAUGE:10:-6000:6000'
]
rrdtool.create ( rrd_filename,
'--step', '5', # one sample every 5 sec
'--start', 'now - 7d',
data_sources,
'RRA:MAX:0.5:1:6307200') # we keep 1 year
===
I am filling it properly -
===
<!-- 2022-05-19 12:25:45 CEST / 1652955945 --> <row><v>4.291018731e+03</v><v>1.715717220e+03</v><v>2.574301511e+03</v></row>
<!-- 2022-05-19 12:25:50 CEST / 1652955950 --> <row><v>4.286880929e+03</v><v>1.721000000e+03</v><v>2.564880929e+03</v></row>
<!-- 2022-05-19 12:25:55 CEST / 1652955955 --> <row><v>4.286880929e+03</v><v>1.721000000e+03</v><v>2.564880929e+03</v></row>
===
Now I want to "xport" some data from it :
rrdtool xport -s $epochStart -e $epochEnd --step 5 --json -t DEF:pot=$ifn:Pprod:MAX XPORT:pot
===
And in the output JSON I find the "step" has changed :
{ "about": "RRDtool graph JSON output",
"meta": {
"start": 1652738755,
"end": 1652824970,
"step": 215,
"legend": [
""
]
},
"data": [
[ "1652738755",0.000000000e+00 ],
[ "1652738970",0.000000000e+00 ],
===
Any logical reason for that ?
PD.- "rrdtool info" says
pi@R4:~/python/pkw/dades $ rrdtool info ./pkw.rrd
filename = "./pkw.rrd"
rrd_version = "0003"
step = 5