Git Product home page Git Product logo

Comments (5)

vdiec avatar vdiec commented on June 5, 2024 1

@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.

deagraw avatar deagraw commented on June 5, 2024

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.

Yearmix avatar Yearmix commented on June 5, 2024

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"]

data from `ContainerLogV2`

image

data from `KubeEvents`

image

monitor settings as result

image

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.

github-actions avatar github-actions commented on June 5, 2024

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 avatar Yearmix commented on June 5, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.