dynatrace-cadvisor

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

dynatrace-cadvisor

The cAdvisor Extension enables [Dynatrace[(https://www.dynatrace.com)] to consume cAdvisor container metrics that are getting published by the kublet node agents of a Kubernetes Cluster.

GitHub Workflow Status (main branch)

Quick Start

Prerequisite for this Extension is the installation of the automated Dynatrace Operator. The Dynatrace Operator contributes the Service Account dynatrace-kubernetes-monitoring within the namespace dynatrace.

Installation
  kubectl apply -f https://github.com/dtcookie/dynatrace-cadvisor/releases/latest/download/dynatrace-cadvisor.yaml

This configures a DaemonSet within your Kubernetes Cluster. It utilizes the prebuilt Docker Image dtcookie/dynatrace-cadvisor.

The DaemonSet ensures that a pod is getting scheduled to run on every node the Kubernetes Cluster consists of. These pods are now offering the cAdvisor metrics by acting as Prometheus Exporters. In addition to that the pods are properly annotated in order for Dynatrace to scrape these metrics automatically.

It will take a minute or two until these metrics are available within the Dynatrace WebUI. Metrics

They are also available for charting via Data Explorer and can get split and filtered by dimensions published by cAdvisor aswell as by dimensions discovered by Dynatrace. Data Explorer

Configuration

By default dynatrace-cadvisor.yaml restricts the collected metrics to those prefixed with container_ (which covers almost all metrics offered by cAdvisor).

metrics.dynatrace.com/filter: | 
  {
    "mode" : "include",
    "names" : [
        "container_*"
    ]
  }   

Please check out the Dynatrace Documentation in case you would like adjust which metrics should get filtered.

Uninstall dynatrace-cadvisor
  kubectl delete -f https://github.com/dtcookie/dynatrace-cadvisor/releases/latest/download/dynatrace-cadvisor.yaml

Limitations

  • This integration supports up to 200 metric data points each per minute.
  • This integration supports only the counter and gauge Prometheus metric types.

Monitoring consumption

Prometheus metrics in Kubernetes environments are subject to DDU consumption. Metrics are first deducted from your quota of included metrics per host unit. Once this quota is exceeded, the remaining metrics consume DDUs.

License

dynatrace-cadvisor is an Open Source Project. Please see LICENSE for more information.

Documentation

Overview

* * @license * Copyright 2020 Dynatrace LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL