Comments (5)
@Yearmix This include and exclude feature is not applicable to ContainerLog and ContainerLogV2 as stated here: https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-data-collection-dcr?tabs=portal#applicable-tables-and-metrics
from docker-provider.
var.enableContainerLogV2 should be set to true for ContainerLogV2 to appear as mentioned in this example: https://github.com/microsoft/Docker-Provider/blob/ci_prod/scripts/onboarding/aks/onboarding-msi-terraform/variables.tf#L66
If the enableContainerLogV2 is true and you are still not seeing ContainerLogV2 table, please create a support ticket
from docker-provider.
var.enableContainerLogV2 should be set to true for ContainerLogV2 to appear as mentioned in this example: https://github.com/microsoft/Docker-Provider/blob/ci_prod/scripts/onboarding/aks/onboarding-msi-terraform/variables.tf#L66
If the enableContainerLogV2 is true and you are still not seeing ContainerLogV2 table, please create a support ticket
It's not true, my main question was about data that I saw in ContainerLogV2
and KubeEvents
let's have a look, at my variables,
data_collection_interval = 1m
namespace_filtering_mode_for_data_collection = Exclude
namespaces_for_data_collection = ["default","kube-node-lease","kube-public","kube-system","flux-system","flux"]
enableContainerLogV2 = true
streams = ["Microsoft-ContainerLog", "Microsoft-ContainerLogV2", "Microsoft-KubeEvents", "Microsoft-KubePodInventory", "Microsoft-KubeNodeInventory", "Microsoft-KubePVInventory","Microsoft-KubeServices", "Microsoft-KubeMonAgentEvents", "Microsoft-InsightsMetrics", "Microsoft-ContainerInventory", "Microsoft-ContainerNodeInventory", "Microsoft-Perf"]
DCR json metadata as a result(actual id's was replaced due to privacy)
{
"properties": {
"description": "DCR for Azure Monitor Container Insights",
"immutableId": "dcr-00000000000000000000000000000000",
"dataSources": {
"extensions": [
{
"streams": [
"Microsoft-ContainerLog",
"Microsoft-ContainerLogV2",
"Microsoft-KubeEvents",
"Microsoft-KubePodInventory",
"Microsoft-KubeNodeInventory",
"Microsoft-KubePVInventory",
"Microsoft-KubeServices",
"Microsoft-KubeMonAgentEvents",
"Microsoft-InsightsMetrics",
"Microsoft-ContainerInventory",
"Microsoft-ContainerNodeInventory",
"Microsoft-Perf"
],
"extensionName": "ContainerInsights",
"extensionSettings": {
"dataCollectionSettings": {
"enableContainerLogV2": true,
"interval": "1m",
"namespaceFilteringMode": "Exclude",
"namespaces": [
"default",
"kube-node-lease",
"kube-public",
"kube-system",
"flux-system",
"flux"
]
}
},
"inputDataSources": [],
"name": "ContainerInsightsExtension"
}
]
},
"destinations": {
"logAnalytics": [
{
"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/olpo-rg/providers/Microsoft.OperationalInsights/workspaces/law-olpo-aks",
"workspaceId": "00000000-0000-0000-0000-000000000000",
"name": "ciworkspace"
}
]
},
"dataFlows": [
{
"streams": [
"Microsoft-ContainerLog",
"Microsoft-ContainerLogV2",
"Microsoft-KubeEvents",
"Microsoft-KubePodInventory",
"Microsoft-KubeNodeInventory",
"Microsoft-KubePVInventory",
"Microsoft-KubeServices",
"Microsoft-KubeMonAgentEvents",
"Microsoft-InsightsMetrics",
"Microsoft-ContainerInventory",
"Microsoft-ContainerNodeInventory",
"Microsoft-Perf"
],
"destinations": [
"ciworkspace"
]
}
],
"provisioningState": "Succeeded"
},
"location": "northeurope",
"tags": {
"cost-center": "Administration",
"legal-unit": "1000 A/S"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/olpo-rg/providers/Microsoft.Insights/dataCollectionRules/MSCI-northeurope-olpo-aks",
"name": "MSCI-northeurope-olpo-aks",
"type": "Microsoft.Insights/dataCollectionRules",
"etag": "\"00000000-0000-0000-0000-000000000000\"",
"systemData": {
"createdBy": "[email protected]",
"createdByType": "User",
"createdAt": "2024-01-30T08:56:54.5825783Z",
"lastModifiedBy": "[email protected]",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-01-30T08:56:54.5825783Z"
}
}
The question is, why does the condition with Include/Exclude not work and I see the data I don't want to see? Thank you!
PS: An approach with a config map works as expected, but this is not about the topic
from docker-provider.
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.
from docker-provider.
@Yearmix This include and exclude feature is not applicable to ContainerLog and ContainerLogV2 as stated here: https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-data-collection-dcr?tabs=portal#applicable-tables-and-metrics
Got it, my fault, thank you!
from docker-provider.
Related Issues (20)
- Agent cannot onboard HOT 17
- Node exporter metrics from Windows Node are not published to container insights (log analytics workspace) HOT 6
- Allow collecting logs only from included namespaces HOT 6
- Add ability to use existing secret to helm chart HOT 4
- This repo is missing important files HOT 2
- OMS Agent high memory usage HOT 39
- OMS agent does not exclude namespaces after configuration HOT 6
- Performance metrics are traced for completed jobs HOT 8
- How to configure the secured endpoint for metric collection HOT 6
- collect_all_kube_events is not working correctly HOT 4
- Why this repo name? HOT 3
- Run fluentd with /etc/config/kube.conf HOT 3
- Run fluentd with a custom configuration HOT 6
- Unable to specify settings for prometheus in ConfigMap HOT 10
- Prometheus logs not showing up in Log Analytics Workspace HOT 12
- can we add new feature for container insight to collect log for specific pod HOT 3
- Control ingestion of Perf logs HOT 2
- Update Recommended Alerts HOT 3
- Exclude specific pods/containers from logs collection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-provider.