Is there any way to post custom time stamp to newrelic? I am using integration.yml file and command api to run shell script command to post the event metrics . With “file api” like below i am able to post custom timestamp with in 48 hours. With “command api”, I am able to post the timestamp with in 24 hours range. I am looking for solution to post the timestamp with in 48 hours using command api . Any suggestions please.
integration.yml with file api:
integrations:
- name: nri-flex
config:
name: sample
apis:
- name: sample
file: /path/to/sample.csv
to_lower: true
rename_keys:
^timestamp$: timestamp1
^timestamp_derived$: timestamp
remove_keys:
- timestamp1
timestamp_conversion:
timestamp: TIMESTAMP