@@ -374,109 +374,117 @@ Replace the properties in the following table before deploying the template.
374
374
375
375
` ` ` json
376
376
{
377
- "type": "Microsoft.monitor/pipelineGroups",
378
- "location": "eastus",
379
- "apiVersion": "2023-10-01-preview",
380
- "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ExtendedLocation/customLocations/my-custom-location",
381
-
382
- "extendedLocation": {
383
- "name": "my-custom-location",
384
- "type": "CustomLocation"
377
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
378
+ "contentVersion": "1.0.0.0",
379
+ "metadata": {
380
+ "description": "This template deploys an edge pipeline for azure monitor."
385
381
},
386
- "properties": {
387
- "receivers": [
388
- {
389
- "type": "OTLP",
390
- "name": "receiver-OTLP",
391
- "otlp": {
392
- "endpoint": "0.0.0.0:4317"
393
- }
382
+ "resources": [
383
+ {
384
+ "type": "Microsoft.monitor/pipelineGroups",
385
+ "location": "eastus",
386
+ "apiVersion": "2023-10-01-preview",
387
+ "name": "my-pipeline-group-name",
388
+ "extendedLocation": {
389
+ "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ExtendedLocation/customLocations/my-custom-location",
390
+ "type": "CustomLocation"
394
391
},
395
- {
396
- "type": "Syslog",
397
- "name": "receiver-Syslog",
398
- "syslog": {
399
- "endpoint": "0.0.0.0:514"
400
- }
401
- }
402
- ],
403
- "processors": [],
404
- "exporters": [
405
- {
406
- "type": "AzureMonitorWorkspaceLogs",
407
- "name": "exporter-log-analytics-workspace",
408
- "azureMonitorWorkspaceLogs": {
409
- "api": {
410
- "dataCollectionEndpointUrl": "https://my-dce-4agr.eastus-1.ingest.monitor.azure.com",
411
- "dataCollectionRule": "dcr-00000000000000000000000000000000",
412
- "stream": "Custom-OTLP",
413
- "cache": {
414
- "maxStorageUsage": "10000",
415
- "retentionPeriod": "60"
416
- },
417
- "schema": {
418
- "recordMap": [
419
- {
420
- "from": "body",
421
- "to": "Body"
422
- },
423
- {
424
- "from": "severity_text",
425
- "to": "SeverityText"
426
- },
427
- {
428
- "from": "time_unix_nano",
429
- "to": "TimeGenerated"
392
+ "properties": {
393
+ "receivers": [
394
+ {
395
+ "type": "OTLP",
396
+ "name": "receiver-OTLP",
397
+ "otlp": {
398
+ "endpoint": "0.0.0.0:4317"
399
+ }
400
+ },
401
+ {
402
+ "type": "Syslog",
403
+ "name": "receiver-Syslog",
404
+ "syslog": {
405
+ "endpoint": "0.0.0.0:514"
406
+ }
407
+ }
408
+ ],
409
+ "processors": [],
410
+ "exporters": [
411
+ {
412
+ "type": "AzureMonitorWorkspaceLogs",
413
+ "name": "exporter-log-analytics-workspace",
414
+ "azureMonitorWorkspaceLogs": {
415
+ "api": {
416
+ "dataCollectionEndpointUrl": "https://my-dce-4agr.eastus-1.ingest.monitor.azure.com",
417
+ "dataCollectionRule": "dcr-00000000000000000000000000000000",
418
+ "stream": "Custom-OTLP",
419
+ "schema": {
420
+ "recordMap": [
421
+ {
422
+ "from": "body",
423
+ "to": "Body"
424
+ },
425
+ {
426
+ "from": "severity_text",
427
+ "to": "SeverityText"
428
+ },
429
+ {
430
+ "from": "time_unix_nano",
431
+ "to": "TimeGenerated"
432
+ }
433
+ ]
430
434
}
431
- ]
435
+ },
436
+ "cache": {
437
+ "maxStorageUsage": 10000,
438
+ "retentionPeriod": 60
439
+ }
432
440
}
433
441
}
434
- }
435
- }
436
- ],
437
- "service": {
438
- "pipelines": [
439
- {
440
- "name": "DefaultOTLPLogs",
441
- "receivers": [
442
- "receiver-OTLP"
443
- ],
444
- "processors": [],
445
- "exporters": [
446
- "exporter-log-analytics-workspace"
442
+ ],
443
+ "service": {
444
+ "pipelines": [
445
+ {
446
+ "name": "DefaultOTLPLogs",
447
+ "receivers": [
448
+ "receiver-OTLP"
449
+ ],
450
+ "processors": [],
451
+ "exporters": [
452
+ "exporter-log-analytics-workspace"
453
+ ],
454
+ "type": "logs"
455
+ },
456
+ {
457
+ "name": "DefaultSyslogs",
458
+ "receivers": [
459
+ "receiver-Syslog"
460
+ ],
461
+ "processors": [],
462
+ "exporters": [
463
+ "exporter-log-analytics-workspace"
464
+ ],
465
+ "type": "logs"
466
+ }
447
467
],
448
- "type": "logs"
468
+ "persistence": {
469
+ "persistentVolumeName": "my-persistent-volume"
470
+ }
449
471
},
450
- {
451
- "name": "DefaultSyslogs",
452
- "receivers": [
453
- "receiver-Syslog"
454
- ],
455
- "processors": [],
456
- "exporters": [
457
- "exporter-log-analytics-workspace"
458
- ],
459
- "type": "logs"
460
- }
461
- ],
462
- "persistence": {
463
- "persistentVolume": "my-persistent-volume"
464
- }
465
- },
466
- "networkingConfigurations": [
467
- {
468
- "externalNetworkingMode": "LoadBalancerOnly",
469
- "routes": [
472
+ "networkingConfigurations": [
470
473
{
471
- "receiver": "receiver-OTLP"
472
- },
473
- {
474
- "receiver": "receiver-Syslog"
474
+ "externalNetworkingMode": "LoadBalancerOnly",
475
+ "routes": [
476
+ {
477
+ "receiver": "receiver-OTLP"
478
+ },
479
+ {
480
+ "receiver": "receiver-Syslog"
481
+ }
482
+ ]
475
483
}
476
484
]
477
485
}
478
- ]
479
- }
486
+ }
487
+ ]
480
488
}
481
489
` ` `
482
490
0 commit comments