Skip to content

kentibs/seg-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SEG-BACKEND MONITORING USING PROMETHEUS

Overview

This guide provides instructions on setting up Prometheus in a Docker container to scrape metrics of seg-backend via url that maybe local or hosted

Prerequisites

  • Docker installed on your system
  • Basic understanding of Prometheus and Docker concepts

Steps to run prometheus server locally

1. clone this repositoty

git https://github.com/kentibs/seg-prometheus.git
cd seg-prometheus

2. Specify target url

In the file prometheus.yml, specify the server url from which the prometheus should scrape metrics. Please note that server must be running the prometheus client responsible for collecting the metrics.

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "custom_metrics"
    static_configs:
      - targets: ["your-sever-url/metrics"]

3. Build and run docker to image to start prometheus server

Run the commands below in the root of the project to build and run the prometheus server

docker build -t my-prometheus-image .

docker run -p 9090:9090 my-prometheus-image

For Additional Information checkout the docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published