Skip to content

Commit

Permalink
Merge pull request #1 from Gravitate-Health/main
Browse files Browse the repository at this point in the history
adapted script to publish metrics for prometheus
  • Loading branch information
joofio authored Nov 28, 2024
2 parents 911947a + 0740b73 commit 87f07f0
Show file tree
Hide file tree
Showing 6 changed files with 455 additions and 628 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ focusing_metrics.log

logs/

data.json
data.json

venv/
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ RUN mkdir /app
WORKDIR /app

RUN pip install --upgrade pip
RUN pip install requests

COPY mainv2.py .
COPY . .
RUN pip install -r requirements.txt



ENTRYPOINT ["python", "mainv2.py"]
ENTRYPOINT ["python", "main.py"]
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

# GH-MONIT

![Latest release](https://img.shields.io/github/v/release/Gravitate-Health/gh-monit)
![Actions workflow](https://github.com/Gravitate-Health/gh-monit/actions/workflows/cicd.yml/badge.svg)
![Python](https://img.shields.io/badge/python-v3.8+-blue.svg)
[![License](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache)


## Table of contents

- [GH-MONIT](#gh-monit)
- [Table of contents](#table-of-contents)
- [Introduction](#introduction)
- [Deployment](#deployment)
- [Kubernetes (Kustomize)](#kubernetes-kustomize)
- [Usage](#usage)
- [Known issues and limitations](#known-issues-and-limitations)
- [Getting help](#getting-help)
- [Contributing](#contributing)
- [Authors and history](#authors-and-history)
- [Acknowledgments](#acknowledgments)


## Introduction

This repository includes an implementation of a monitor for Gravitate Health resources. It publishes metrics regarding the status of ePIs, preprocessors, and focusing status.

## Deployment

#### Kubernetes (Kustomize)

Production:
```bash
kubectl apply -k kubernetes/base
```

Development:
```bash
kubectl apply -k kubernetes/dev
```


Usage
-----

Known issues and limitations
----------------------------

Getting help
------------
In case you find a problem or you need extra help, please use the issues tab to report the issue.

Contributing
------------
To contribute, fork this repository and send a pull request with the changes squashed.

Authors and history
---------------------------
- João Almeida ([@joofio](https://github.com/joofio))
- Guillermo Mejías ([@gmej](https://github.com/gmej))

Acknowledgments
---------------------------
- [ORIGINAL DEVELOPMENT by @joofio](https://github.com/joofio/gh-monit)
Loading

0 comments on commit 87f07f0

Please sign in to comment.