Code Monkey home page Code Monkey logo

fluentdaks's Introduction

Monitor Fluentd via Prometheus and Azure Monitor

Download attached fluentd-cm.yaml and fluentd-ds.yaml

This article describes how to monitor Fluentd via Prometheus. Since both Prometheus and Fluentd are under CNCF (Cloud Native Computing Foundation), Fluentd project is recommending to use Prometheus by default to monitor Fluentd. https://docs.fluentd.org/monitoring-fluentd/monitoring-prometheus

The configmap and daemonset below are located on this github repo.

kubectl apply -f fluentd-cm.yaml   # please review the changes to make sure all the metrics and configurations in there
kubectl apply -f fluentd-ds.yaml   # please update with your image name

Troubleshooting steps

  1. Exec into fluentd deamonset pod and run the curl command http://:24231/metrics and you should see the prometheus metrics
    
kubectl get pods -n kube-system -o wide
kubectl exec fluentd-k4jrm -it bash -n kube-system
apt update && sudo apt upgrade
apt install curl

root@fluentd-g9m57:/home/fluent# curl http://10.240.0.20:24231/metrics  # Please use your fluentd pod IP address 

TYPE fluentd_input_log_count counter
HELP fluentd_input_log_count The total number of incoming records
fluentd_input_log_count{tag="fml.model_logs",hostname="fluentd-g9m57",worker="0"} 1958.0
  1. If above step successful, under 5 minutes, you should see prometheus metrics under InsightsMetricsTable

Prometheus Metrics

fluentdaks's People

Contributors

preddy727 avatar

Watchers

 avatar  avatar

Forkers

pvj695

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.