Author Archives: Huang Shiyang

PromQL Basic

https://prometheus.io/docs/prometheus/latest/querying/basics/ Prometheus provides a functional expression language that lets the user select and aggregate time series data in real time. The result of an expression can either be shown as a graph, viewed... Read More | Share it now!

Prometheus 中 alertmanager报警规则详解

这篇文章介绍prometheus和alertmanager的报警和通知规则,prometheus的配置文件名为prometheus.yml,alertmanager的配置文件名为alertmanager.yml 报警:指prometheus将监测到的异常事件发送给alertmanager,而不是指发送邮件通知 通知:指alertmanager发送异常事件的通知(邮件、webhook等) Gmail... Read More | Share it now!

Redis Metrics Exporter

GIT: https://github.com/oliver006/redis_exporter Prometheus exporter for Redis metrics. Supports Redis 2.x, 3.x and 4.x Building, configuring, and running Locally build and run it: $ go get github.com/oliver006/redis_exporter $ cd... Read More | Share it now!

Prometheus configuration

CONFIGURATION Prometheus is configured via command-line flags and a configuration file. While the command-line flags configure immutable system parameters (such as storage locations, amount of data to keep on disk and in memory, etc.), the... Read More | Share it now!

Alertmanager

GIT: https://github.com/prometheus/alertmanager Alertmanager     The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver... Read More | Share it now!

Prometheus python client sample server

Flask:   from flask import Response, Flask, request import prometheus_client from prometheus_client.core import CollectorRegistry from prometheus_client import Summary, Counter, Histogram, Gauge import random, time # Create my app app =... Read More | Share it now!

Prometheus rules

OR in rules: You can use a regex for this {job=~"traefik|cadvisor|prometheus"}, however that you want to do this is a smell. ... Read More | Share it now!

Quickstart kafka installing

This tutorial assumes you are starting fresh and have no existing Kafka or ZooKeeper data. Since Kafka console scripts are different for Unix-based and Windows platforms, on Windows platforms use bin\windows\ instead of bin/, and change the script... Read More | Share it now!