Browse Source

applicationinsights deploy template

pull/577/head
Sychev Igor 6 years ago
parent
commit
ae4e263415
5 changed files with 55 additions and 2 deletions
  1. +24
    -0
      deploy/az/applicationinsights/applicationinsights.json
  2. +9
    -0
      deploy/az/applicationinsights/applicationinsights.parameters.json
  3. +19
    -0
      deploy/az/applicationinsights/readme.md
  4. +1
    -1
      deploy/readme.md
  5. +2
    -1
      k8s/conf_cloud.yml

+ 24
- 0
deploy/az/applicationinsights/applicationinsights.json View File

@ -0,0 +1,24 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "String"
}
},
"variables": {
"appInsightsName": "[concat(parameters('name'), 'appinsights')]",
"appInsightsApplicationId": "parameters('name'"
},
"resources": [
{
"apiVersion": "2014-08-01",
"name": "[variables('appInsightsName')]",
"type": "Microsoft.Insights/components",
"location": "[resourceGroup().location]",
"properties": {
"ApplicationId": "[variables('appInsightsApplicationId')]"
}
}
]
}

+ 9
- 0
deploy/az/applicationinsights/applicationinsights.parameters.json View File

@ -0,0 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"value": "eshop"
}
}
}

+ 19
- 0
deploy/az/applicationinsights/readme.md View File

@ -0,0 +1,19 @@
# Deploying Azure Application Insights
The ARM template `applicationinsights.json` and its parameter file (`applicationinsights.parameters.json`) are used to deploy Azure Application Insights
## Deploy the template
Once parameter file is edited you can deploy it using [create-resources script](../readme.md).
i. e. if you are in Windows, to deploy the Azure Azure Application Insights in a new resourcegroup located in westus, go to `deploy\az` folder and type:
```
create-resources.cmd applicationinsights\applicationinsights newResourceGroup -c westus
```
## Setting Azure Application Insights InstrumentationKey in for projects
Cope from Azure portal InstrumentationKey and add it in containers configuration.
For Kubernates - it can be done in k8s\conf_cloud.yml file as a value for Instrumentation_Key key.
For local docker environment remove # from INSTRUMENTATION_KEY key in .env file.

+ 1
- 1
deploy/readme.md View File

@ -24,7 +24,7 @@ Using `docker-machine` is the recommended way to create a VM with docker install
5. [Deploying Catalog Storage](az/storage/catalog/readme.md) 5. [Deploying Catalog Storage](az/storage/catalog/readme.md)
6. [Deploying Marketing Storage](az/storage/marketing/readme.md) 6. [Deploying Marketing Storage](az/storage/marketing/readme.md)
7. [Deploying Marketing Azure functions](az/azurefunctions/readme.md) 7. [Deploying Marketing Azure functions](az/azurefunctions/readme.md)
8. [Deploying Azure Application Insights](az/applicationinsights/readme.md)


+ 2
- 1
k8s/conf_cloud.yml View File

@ -31,4 +31,5 @@ data:
PaymentBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX for topic in case of using Azure) PaymentBus: CONNECTION_STRING (NAME OF RABBITMQ CONTAINER OR Endpoint=sb://XXXX for topic in case of using Azure)
# Global entries # Global entries
UseAzureServiceBus: "TRUE" IF USE AZURE SB ("FALSE" FOR USING RABBITMQ) UseAzureServiceBus: "TRUE" IF USE AZURE SB ("FALSE" FOR USING RABBITMQ)
keystore: REDIS CONNECTION STRING FOR KEYSTORE
keystore: REDIS CONNECTION STRING FOR KEYSTORE
Instrumentation_Key: ""

Loading…
Cancel
Save