yakshaving-art / alertsnitch

Ingests Prometheus alerts and poops them into a MySQL database for offline analysis
MIT License
70 stars 21 forks source link

oracle integration #2

Closed s751167520 closed 3 years ago

s751167520 commented 4 years ago

May I ask if I want to replace the MYSQL data source with the ORACLE data source. Which files should be modified

pcarranza commented 4 years ago

Hey, @s751167520 for the record, we are running this project in gitlab and this is just a mirror.

This said, you need to do at least 2 things:

This could be done by adding a backend argument and then picking the right one here and then implement something with this interface (it's basically 3 methods)

It shouldn't be hard to do at all.

pcarranza commented 3 years ago

FYI I just added support for Postgres, which could be useful for setting up Oracle https://github.com/yakshaving-art/alertsnitch#postgres

pcarranza commented 3 years ago

Ok, just for awareness, a couple of things.

  1. This project is actually managed in Gitlab instead of Github.
  2. In this merge request you can see how I implemented Postgres support
  3. I've no idea which would be the driver for Oracle, and don't have access to an Oracle DB myself, thus I don't plan to implement this myself.
  4. I do accept merge requests that add more drivers, if you want to implement it yourself, just send me a MR over the Gitlab repo and I will gladly review it.

I will close this issue hoping for the conversation to move over there.