All Projects → infonova → Prometheusbeat

infonova / Prometheusbeat

Licence: other
send prometheus metrics to elastic

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Prometheusbeat

Promregator
Prometheus Aggregator for Cloud Foundry (Core Component)
Stars: ✭ 66 (-4.35%)
Mutual labels:  metrics, prometheus
Citrix Adc Metrics Exporter
Export metrics from Citrix ADC (NetScaler) to Prometheus
Stars: ✭ 67 (-2.9%)
Mutual labels:  metrics, prometheus
Iperf3 exporter
Simple server that probes iPerf3 endpoints and exports results via HTTP for Prometheus consumption
Stars: ✭ 30 (-56.52%)
Mutual labels:  metrics, prometheus
Json Exporter
Prometheus exporter which fetches JSON from a URL and exports one of the values as gauge metrics
Stars: ✭ 26 (-62.32%)
Mutual labels:  metrics, prometheus
Atlas exporter
Metric exporter for RIPE Atlas measurement results
Stars: ✭ 48 (-30.43%)
Mutual labels:  metrics, prometheus
Prometheus Net
.NET library to instrument your code with Prometheus metrics
Stars: ✭ 944 (+1268.12%)
Mutual labels:  metrics, prometheus
Nginx Lua Prometheus
Prometheus metric library for Nginx written in Lua
Stars: ✭ 964 (+1297.1%)
Mutual labels:  metrics, prometheus
Prometheus
Kubernetes Setup for Prometheus and Grafana
Stars: ✭ 824 (+1094.2%)
Mutual labels:  metrics, prometheus
Promcord
📊 Analyze your entire discord guild in grafana using prometheus. Message, User, Game and Voice statistics...
Stars: ✭ 39 (-43.48%)
Mutual labels:  metrics, prometheus
Kafka exporter
Kafka exporter for Prometheus
Stars: ✭ 996 (+1343.48%)
Mutual labels:  metrics, prometheus
Postgresql exporter
A Prometheus exporter for some postgresql metrics
Stars: ✭ 26 (-62.32%)
Mutual labels:  metrics, prometheus
Prometheus.cl
Prometheus.io Common Lisp client
Stars: ✭ 67 (-2.9%)
Mutual labels:  metrics, prometheus
Raspberrypi exporter
Prometheus exporter for Raspberry Pi metrics
Stars: ✭ 18 (-73.91%)
Mutual labels:  metrics, prometheus
Unifiedmetrics
Fully-featured metrics collection agent for Minecraft servers. Supports Prometheus and InfluxDB. Dashboard included out-of-box.
Stars: ✭ 29 (-57.97%)
Mutual labels:  metrics, prometheus
Django Prometheus
Export Django monitoring metrics for Prometheus.io
Stars: ✭ 823 (+1092.75%)
Mutual labels:  metrics, prometheus
Go Grpc Prometheus
Prometheus monitoring for your gRPC Go servers.
Stars: ✭ 965 (+1298.55%)
Mutual labels:  metrics, prometheus
Opencensus Java
A stats collection and distributed tracing framework
Stars: ✭ 640 (+827.54%)
Mutual labels:  metrics, prometheus
Snmp exporter
SNMP Exporter for Prometheus
Stars: ✭ 705 (+921.74%)
Mutual labels:  metrics, prometheus
Iota Prom Exporter
Iota Exporter for Prometheus Metrics
Stars: ✭ 33 (-52.17%)
Mutual labels:  metrics, prometheus
Dcos Metrics
The metrics pipeline for DC/OS 1.9-1.11
Stars: ✭ 57 (-17.39%)
Mutual labels:  metrics, prometheus

Prometheusbeat

Prometheusbeat is an elastic beat that can receive Prometheus metrics via the remote write feature.

Example Prometheusbeat configuration:

prometheusbeat:
  listen: ":8080"
  context: "/prometheus"

[...]

Example Prometheus configuration:

[...]

remote_write:
  url: "http://localhost:8080/prometheus"

[...]

Example Prometheusbeat event:

{
  "@timestamp": "2019-08-26T11:34:04.253Z",
  "@metadata": {
    "beat": "prometheusbeat",
    "type": "_doc",
    "version": "7.3.1"
  },
  "labels": {
    "instance": "localhost:9090",
    "job": "prometheus"
  },
  "ecs": {
    "version": "1.0.1"
  },
  "host": {
    "containerized": false,
    "hostname": "test",
    "architecture": "x86_64",
    "os": {
      "kernel": "4.14.14-1.el7.elrepo.x86_64",
      "codename": "Core",
      "platform": "centos",
      "version": "7 (Core)",
      "family": "redhat",
      "name": "CentOS Linux"
    },
    "id": "338bc9f83bf343dfa1983fc2bc43bd0f",
    "name": "test"
  },
  "agent": {
    "version": "7.3.1",
    "type": "prometheusbeat",
    "ephemeral_id": "51cadc55-5746-4ad2-a278-b0dcac12942b",
    "hostname": "test",
    "id": "f9c5188e-a1ea-4fbb-adf6-8494f56c59bf"
  },
  "name": "scrape_series_added",
  "value": 349
}

Getting Started with Prometheusbeat

Requirements

Init Project

To get running with Prometheusbeat and also install the dependencies, run the following command:

make setup

It will create a clean git history for each major step. Note that you can always rewrite the history if you wish before pushing your changes.

To push Prometheusbeat in the git repository, run the following commands:

git remote set-url origin https://github.com/infonova/prometheusbeat
git push origin master

For further development, check out the beat developer guide.

Build

To build the binary for Prometheusbeat run the command below. This will generate a binary in the same directory with the name prometheusbeat.

mage build

Run

To run Prometheusbeat with debugging output enabled, run:

./prometheusbeat -c prometheusbeat.yml -e -d "*"

Test

To test Prometheusbeat, run the following command:

make testsuite

alternatively:

make unit-tests
make system-tests
make integration-tests
make coverage-report

The test coverage is reported in the folder ./build/coverage/

Update

Each beat has a template for the mapping in elasticsearch and a documentation for the fields which is automatically generated based on etc/fields.yml. To generate etc/prometheusbeat.template.json and etc/prometheusbeat.asciidoc

make update

Cleanup

To clean Prometheusbeat source code, run the following command:

make fmt

To clean up the build directory and generated artifacts, run:

make clean

Clone

To clone Prometheusbeat from the git repository, run the following commands:

mkdir -p ${GOPATH}/github.com/infonova
cd ${GOPATH}/github.com/infonova
git clone https://github.com/infonova/prometheusbeat

For further development, check out the beat developer guide.

Packaging

The beat frameworks provides tools to crosscompile and package your beat for different platforms. This requires docker and vendoring as described above. To build packages of your beat, run the following command:

make release

This will fetch and create all images required for the build process. The whole process to finish can take several minutes.

Building Docker Image

Prometheusbeat Docker image can be customized and build to run on any environments

docker build . -t infonova/prometheusbeat:latest

Running Docker Image

Prometheusbeat Docker image can be run using below command

docker run -d  --name prometheusbeat -p <<dockerhost-port>>:8080 -v <<host-config-path>>:/prometheusbeat.yml infonova/prometheusbeat:latest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].