HTTP/S

HTTP/S#

This output plugin transmits metrics over HTTP.

Configuration:

# A plugin that can transmit metrics over HTTP/S to nJAMS Server
[[outputs.http]]
    ## For nJAMS Server 5.0, 5.1, 5.2 use this URL to send metrics to:
    # url = "http://localhost:8080/njams/api/metrics/metric"

    ## For nJAMS Server >5.3 use this URL to send metrics to. The <url-suffix> depends on your Data Provider configuration.
    url = "http://localhost:8080/njams/api/processing/ingest/<url-suffix>"

    ## Timeout for HTTP message
    timeout = "5s"

    ## HTTP method, one of: "POST" or "PUT"
    method = "POST"

    ## Data format to output.
    data_format = "njams"

# Additional HTTP headers
[outputs.http.headers]
    Content-Type = "application/json"

Note

Since nJAMS Server 5.3 the endpoint has changed to url = "https://<njams-server>:<port>/njams/api/processing/ingest/<url-suffix>". You can still use the old endpoint in 5.3 for compatibility, but the old endpoint is deprecated.