Update changelog and docs for nowmetric serializer
This commit is contained in:
parent
e6724bfb7c
commit
c9d8be9ab5
|
@ -5,6 +5,10 @@
|
||||||
- [cloud_pubsub](/plugins/inputs/cloud_pubsub/README.md) - Contributed by @emilymye
|
- [cloud_pubsub](/plugins/inputs/cloud_pubsub/README.md) - Contributed by @emilymye
|
||||||
- [neptune_apex](/plugins/inputs/neptune_apex/README.md) - Contributed by @MaxRenaud
|
- [neptune_apex](/plugins/inputs/neptune_apex/README.md) - Contributed by @MaxRenaud
|
||||||
|
|
||||||
|
### New Serializers
|
||||||
|
|
||||||
|
- [nowmetric](/plugins/serializers/nowmetric/README.md) - Contributed by @JefMuller
|
||||||
|
|
||||||
#### Features
|
#### Features
|
||||||
|
|
||||||
- [#4345](https://github.com/influxdata/telegraf/pull/4345): Allow for force gathering ES cluster stats.
|
- [#4345](https://github.com/influxdata/telegraf/pull/4345): Allow for force gathering ES cluster stats.
|
||||||
|
|
|
@ -300,6 +300,7 @@ For documentation on the latest development code see the [documentation index][d
|
||||||
- [InfluxDB Line Protocol](/plugins/serializers/influx)
|
- [InfluxDB Line Protocol](/plugins/serializers/influx)
|
||||||
- [JSON](/plugins/serializers/json)
|
- [JSON](/plugins/serializers/json)
|
||||||
- [Graphite](/plugins/serializers/graphite)
|
- [Graphite](/plugins/serializers/graphite)
|
||||||
|
- [ServiceNow](/plugins/serializers/nowmetric)
|
||||||
- [SplunkMetric](/plugins/serializers/splunkmetric)
|
- [SplunkMetric](/plugins/serializers/splunkmetric)
|
||||||
|
|
||||||
## Processor Plugins
|
## Processor Plugins
|
||||||
|
|
|
@ -1,83 +1,83 @@
|
||||||
# ServiceNow Metrics serializer
|
# ServiceNow Metrics serializer
|
||||||
|
|
||||||
The ServiceNow Metrics serializer outputs metrics in the [ServiceNow Operational Intelligence format][ServiceNow-format].
|
The ServiceNow Metrics serializer outputs metrics in the [ServiceNow Operational Intelligence format][ServiceNow-format].
|
||||||
|
|
||||||
It can be used to write to a file using the file output, or for sending metrics to a MID Server with Enable REST endpoint activated using the standard telegraf HTTP output.
|
It can be used to write to a file using the file output, or for sending metrics to a MID Server with Enable REST endpoint activated using the standard telegraf HTTP output.
|
||||||
If you're using the HTTP output, this serializer knows how to batch the metrics so you don't end up with an HTTP POST per metric.
|
If you're using the HTTP output, this serializer knows how to batch the metrics so you don't end up with an HTTP POST per metric.
|
||||||
|
|
||||||
[ServiceNow-format]: https://docs.servicenow.com/bundle/london-it-operations-management/page/product/event-management/reference/mid-POST-metrics.html
|
[ServiceNow-format]: https://docs.servicenow.com/bundle/london-it-operations-management/page/product/event-management/reference/mid-POST-metrics.html
|
||||||
|
|
||||||
|
|
||||||
An example event looks like:
|
An example event looks like:
|
||||||
```javascript
|
```javascript
|
||||||
[{
|
[{
|
||||||
"metric_type": "Disk C: % Free Space",
|
"metric_type": "Disk C: % Free Space",
|
||||||
"resource": "C:\\",
|
"resource": "C:\\",
|
||||||
"node": "lnux100",
|
"node": "lnux100",
|
||||||
"value": 50,
|
"value": 50,
|
||||||
"timestamp": 1473183012000,
|
"timestamp": 1473183012000,
|
||||||
"ci2metric_id": {
|
"ci2metric_id": {
|
||||||
"node": "lnux100"
|
"node": "lnux100"
|
||||||
},
|
},
|
||||||
"source": “Telegraf”
|
"source": “Telegraf”
|
||||||
}]
|
}]
|
||||||
```
|
```
|
||||||
## Using with the HTTP output
|
## Using with the HTTP output
|
||||||
|
|
||||||
To send this data to a ServiceNow MID Server with Web Server extension activated, you can use the HTTP output, there are some custom headers that you need to add to manage the MID Web Server authorization, here's a sample config for an HTTP output:
|
To send this data to a ServiceNow MID Server with Web Server extension activated, you can use the HTTP output, there are some custom headers that you need to add to manage the MID Web Server authorization, here's a sample config for an HTTP output:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[outputs.http]]
|
[[outputs.http]]
|
||||||
## URL is the address to send metrics to
|
## URL is the address to send metrics to
|
||||||
url = "http://<mid server fqdn or ip address>:9082/api/mid/sa/metrics"
|
url = "http://<mid server fqdn or ip address>:9082/api/mid/sa/metrics"
|
||||||
|
|
||||||
## Timeout for HTTP message
|
## Timeout for HTTP message
|
||||||
# timeout = "5s"
|
# timeout = "5s"
|
||||||
|
|
||||||
## HTTP method, one of: "POST" or "PUT"
|
## HTTP method, one of: "POST" or "PUT"
|
||||||
method = "POST"
|
method = "POST"
|
||||||
|
|
||||||
## HTTP Basic Auth credentials
|
## HTTP Basic Auth credentials
|
||||||
username = 'evt.integration'
|
username = 'evt.integration'
|
||||||
password = 'P@$$w0rd!'
|
password = 'P@$$w0rd!'
|
||||||
|
|
||||||
## Optional TLS Config
|
## Optional TLS Config
|
||||||
# tls_ca = "/etc/telegraf/ca.pem"
|
# tls_ca = "/etc/telegraf/ca.pem"
|
||||||
# tls_cert = "/etc/telegraf/cert.pem"
|
# tls_cert = "/etc/telegraf/cert.pem"
|
||||||
# tls_key = "/etc/telegraf/key.pem"
|
# tls_key = "/etc/telegraf/key.pem"
|
||||||
## Use TLS but skip chain & host verification
|
## Use TLS but skip chain & host verification
|
||||||
# insecure_skip_verify = false
|
# insecure_skip_verify = false
|
||||||
|
|
||||||
## Data format to output.
|
## Data format to output.
|
||||||
## Each data format has it's own unique set of configuration options, read
|
## Each data format has it's own unique set of configuration options, read
|
||||||
## more about them here:
|
## more about them here:
|
||||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
||||||
data_format = "nowmetric"
|
data_format = "nowmetric"
|
||||||
|
|
||||||
## Additional HTTP headers
|
## Additional HTTP headers
|
||||||
[outputs.http.headers]
|
[outputs.http.headers]
|
||||||
# # Should be set manually to "application/json" for json data_format
|
# # Should be set manually to "application/json" for json data_format
|
||||||
Content-Type = "application/json"
|
Content-Type = "application/json"
|
||||||
Accept = "application/json"
|
Accept = "application/json"
|
||||||
```
|
```
|
||||||
|
|
||||||
Starting with the London release, you also need to explicitly create event rule to allow binding of metric events to host CIs.
|
Starting with the London release, you also need to explicitly create event rule to allow binding of metric events to host CIs.
|
||||||
|
|
||||||
https://docs.servicenow.com/bundle/london-it-operations-management/page/product/event-management/task/event-rule-bind-metrics-to-host.html
|
https://docs.servicenow.com/bundle/london-it-operations-management/page/product/event-management/task/event-rule-bind-metrics-to-host.html
|
||||||
|
|
||||||
## Using with the File output
|
## Using with the File output
|
||||||
|
|
||||||
You can use the file output to output the payload in a file.
|
You can use the file output to output the payload in a file.
|
||||||
In this case, just add the following section to your telegraf config file
|
In this case, just add the following section to your telegraf config file
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[outputs.file]]
|
[[outputs.file]]
|
||||||
## Files to write to, "stdout" is a specially handled file.
|
## Files to write to, "stdout" is a specially handled file.
|
||||||
files = ["C:/Telegraf/metrics.out"]
|
files = ["C:/Telegraf/metrics.out"]
|
||||||
|
|
||||||
## Data format to output.
|
## Data format to output.
|
||||||
## Each data format has its own unique set of configuration options, read
|
## Each data format has its own unique set of configuration options, read
|
||||||
## more about them here:
|
## more about them here:
|
||||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
||||||
data_format = "nowmetric"
|
data_format = "nowmetric"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue