Skip to content

Commit 0c0b78d

Browse files
committed
fix(content): correct code-block language tags and syntax errors
Telegraf v1 plugin docs — label fixes so json/toml blocks parse correctly under the CI linter: - bind: named.conf syntax in json fence → text - ctrlx_datalayer: ctrlX Datalayer source-value format → text (format unverified; upstream Telegraf PRs filed — see below) - docker: TOML config snippets mislabeled as json → text - jti_openconfig_telemetry: duplicate key in toml block → text - opcua_listener, dynatrace: // inline comments in toml → # - postgresql_extensible: backslash line continuation in toml → text - win_eventlog: unclosed triple-quoted string in toml → text - azure_data_explorer: KQL/Kusto code in json fence → text - clarify: proprietary signal/values format in json fence → text - elasticsearch: HTTP request + body in json fence → text - zabbix: JSONL-format payloads in json fence → jsonl - converter: unclosed toml string literal "unix → "unix" - lookup, secretstore/http: ellipsis elide markers in json fence → text - splunkmetric: valid JSON metric objects in javascript fence → json InfluxDB Cloud / Cloud Serverless bucket docs: - bucket-schema, create-bucket, update-bucket, manage-explicit-bucket-schemas: JSON API request bodies in javascript/js fences → json
1 parent 35d6b85 commit 0c0b78d

21 files changed

Lines changed: 31 additions & 31 deletions

File tree

content/influxdb/cloud/admin/buckets/bucket-schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ For example, the following request defines the _explicit_ bucket measurement sch
132132

133133
{{< api-endpoint method="post" endpoint="https://cloud2.influxdata.com/api/v2/buckets/{BUCKET_ID}/schema/measurements" api-ref="/influxdb/cloud/api/buckets//-bucketID-/schema/measurements" >}}
134134

135-
```js
135+
```json
136136
{
137137
"name": "airSensors",
138138
"columns": [
@@ -262,7 +262,7 @@ You can't modify or delete columns in bucket schemas.
262262
263263
{{< api-endpoint method="patch" endpoint="https://cloud2.influxdata.com/api/v2/buckets/{BUCKET_ID}/schema/measurements/{MEASUREMENT_ID}" api-ref="/influxdb/cloud/api/bucket-schemas/" >}}
264264
265-
```js
265+
```json
266266
{
267267
"columns": [
268268
{"name": "time", "type": "timestamp"},

content/influxdb/cloud/admin/buckets/create-bucket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ endpoint and set the `schemaType` property value to `explicit` in the request bo
169169

170170
{{< api-endpoint method="post" endpoint="https://cloud2.influxdata.com/api/v2/buckets" api-ref="/influxdb/cloud/api/buckets/" >}}
171171

172-
```js
172+
```json
173173
{
174174
"orgID": "{INFLUX_ORG_ID}",
175175
"name": "my-explicit-bucket",

content/influxdb/cloud/admin/buckets/update-bucket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You can update the following bucket properties:
130130

131131
{{< api-endpoint method="patch" endpoint="https://cloud2.influxdata.com/api/v2/buckets/{BUCKET_ID}" api-ref="/influxdb/cloud/api/buckets/" >}}
132132

133-
```js
133+
```json
134134
{
135135
"name": "air_sensor",
136136
"description": "bucket holding air sensor data",

content/influxdb3/cloud-serverless/admin/buckets/manage-explicit-bucket-schemas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ You can't modify or delete columns in bucket schemas.
151151

152152
{{< api-endpoint method="patch" endpoint="https://{{< influxdb/host >}}/api/v2/buckets/{BUCKET_ID}/schema/measurements/{MEASUREMENT_ID}" api-ref="/influxdb3/cloud-serverless/api/buckets/" >}}
153153

154-
```js
154+
```json
155155
{
156156
"columns": [
157157
{"name": "time", "type": "timestamp"},

content/influxdb3/cloud-serverless/admin/buckets/update-bucket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ You can update the following bucket properties:
119119

120120
{{< api-endpoint method="patch" endpoint="https://{{< influxdb/host >}}/api/v2/buckets/{BUCKET_ID}" api-ref="/influxdb3/cloud-serverless/api/buckets/#operation/PatchBucketsID" >}}
121121

122-
```js
122+
```json
123123
{
124124
"name": "air_sensor",
125125
"description": "bucket holding air sensor data",

content/telegraf/v1/data_formats/output/splunkmetric.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Th data is output in a format that conforms to the specified Splunk HEC JSON for
1919
[Send metrics in JSON format](http://dev.splunk.com/view/event-collector/SP-CAAAFDN).
2020

2121
An example event looks like:
22-
```javascript
22+
```json
2323
{
2424
"time": 1529708430,
2525
"event": "metric",
@@ -104,7 +104,7 @@ Such as this example which overrides the index just on the cpu metric:
104104
You can use the file output when running telegraf on a machine with a Splunk forwarder.
105105

106106
A sample event when `hec_routing` is false (or unset) looks like:
107-
```javascript
107+
```json
108108
{
109109
"_value": 0.6,
110110
"cpu": "cpu0",

content/telegraf/v1/input-plugins/bind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ depending on your BIND version and configured statistics channel.
8383
Add the following to your named.conf if running Telegraf on the same host
8484
as the BIND daemon:
8585

86-
```json
86+
```text
8787
statistics-channels {
8888
inet 127.0.0.1 port 8053;
8989
};

content/telegraf/v1/input-plugins/ctrlx_datalayer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Configuration:
321321

322322
Source:
323323

324-
```json
324+
```text
325325
"framework/metrics/system/memavailable-mb" : 365.93359375
326326
"framework/metrics/system/memused-mb" : 567.67578125
327327
```
@@ -348,7 +348,7 @@ Configuration:
348348

349349
Source:
350350

351-
```json
351+
```text
352352
"alldata/dynamic/array-of-bool8" : [true, false, true]
353353
"alldata/dynamic/array-of-uint8" : [0, 255]
354354
```
@@ -375,7 +375,7 @@ Configuration:
375375

376376
Source:
377377

378-
```json
378+
```text
379379
"motion/axs/Axis_1/state/values/actual" : {"actualPos":65.249329860957,"actualVel":5,"actualAcc":0,"actualTorque":0,"distLeft":0,"actualPosUnit":"mm","actualVelUnit":"mm/min","actualAccUnit":"m/s^2","actualTorqueUnit":"Nm","distLeftUnit":"mm"}
380380
"motion/axs/Axis_2/state/values/actual" : {"actualPos":120,"actualVel":0,"actualAcc":0,"actualTorque":0,"distLeft":0,"actualPosUnit":"deg","actualVelUnit":"rpm","actualAccUnit":"rad/s^2","actualTorqueUnit":"Nm","distLeftUnit":"deg"}
381381
```

content/telegraf/v1/input-plugins/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ for containers that have no explicit hostname set, as defined by docker.
165165
Kubernetes may add many labels to your containers, if they are not needed you
166166
may prefer to exclude them:
167167

168-
```json
168+
```text
169169
docker_label_exclude = ["annotation.kubernetes*"]
170170
```
171171

@@ -174,7 +174,7 @@ may prefer to exclude them:
174174
Docker-compose will add labels to your containers. You can limit restrict labels
175175
to selected ones, e.g.
176176

177-
```json
177+
```text
178178
docker_label_include = [
179179
"com.docker.compose.config-hash",
180180
"com.docker.compose.container-number",

content/telegraf/v1/input-plugins/jti_openconfig_telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ plugin ordering. See [CONFIGURATION.md](/telegraf/v1/configuration/#plugins) for
4343

4444
## Configuration
4545

46-
```toml @sample.conf
46+
```text @sample.conf
4747
# Subscribe and receive OpenConfig Telemetry data using JTI
4848
[[inputs.jti_openconfig_telemetry]]
4949
## List of device addresses to collect telemetry from

0 commit comments

Comments
 (0)