...
To send metrics using curl, save example above to a file named "named datapoints.json " and submit it with the following call, using your own token:
...
To post these data using curl, save the example above (ensure tabs are preserved) to a file named datapoints.raw and use the following call with your own token:
Code Block | ||
---|---|---|
| ||
curl -v -H 'Content-type: text/plain' -d @datapoints.raw http://spm-receiver.sematext.com/receiver/custom/receive.raw?token=[spm app token] |
Java API
Sematext-metrics is an open source Java library for sending custom metrics from java applicationJava applications. Please refer to README for a quick start.
Limitations
Each SPM plan allows for a different number of metrics and a different number of datapoints per calendar month. Please see SPM Plans page.
...