Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure monitors using config file (like Heartbeat) #1354

Open
1 task done
mchudinov opened this issue Mar 4, 2022 · 16 comments
Open
1 task done

Configure monitors using config file (like Heartbeat) #1354

mchudinov opened this issue Mar 4, 2022 · 16 comments
Labels
area:deployment related to how uptime kuma can be deployed area:monitor Everything related to monitors feature-request Request for new features to be added type:new proposing to add a new monitor

Comments

@mchudinov
Copy link

mchudinov commented Mar 4, 2022

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

Other

🔖 Feature description

An ability to configure monitors using configuration JSON/XML/YAML/INI/whatever file, like Heartbeat does.

Heartbeat monitor config example:

heartbeat.monitors:
- type: icmp
  id: ping-myhost
  name: My Host Ping
  hosts: ["myhost"]
  schedule: '*/5 * * * * * *'
- type: tcp
  id: myhost-tcp-echo
  name: My Host TCP Echo
  hosts: ["myhost:777"]  # default TCP Echo Protocol
  check.send: "Check"
  check.receive: "Check"
  schedule: '@every 5s'
- type: http
  id: service-status
  name: Service Status
  service.name: my-apm-service-name
  hosts: ["http://localhost:80/service/status"]
  check.response.status: [200]
  schedule: '@every 5s'

✔️ Solution

The configuration file is injected into Docker image while uptime-kuma starts and is immediately taken into action by uptime-kuma.
Such a config file can be programmatically created and automatically deployed as part of a script. Then uptime-kuma can be used for uptime monitoring of complex automated deployments like for example GitLab with all its parts.

❓ Alternatives

No response

📝 Additional Context

No response

@mchudinov mchudinov added the feature-request Request for new features to be added label Mar 4, 2022
@jananathbanuka

This comment was marked as spam.

@BercziSandor

This comment was marked as spam.

1 similar comment
@fgajic

This comment was marked as spam.

@unnisathyarajan

This comment was marked as spam.

@s1ashz

This comment was marked as spam.

@SUngarov

This comment was marked as spam.

@harryvince

This comment was marked as spam.

@guillaumemeyer
Copy link

Without this feature, how do you deploy this tool from one environment to another (from UAT > INTEGRATION > PRODUCTION)?

@dorkamotorka

This comment was marked as spam.

1 similar comment
@Sam-bernier

This comment was marked as spam.

@tofran
Copy link
Contributor

tofran commented Oct 12, 2023

+1

Please refrain from making such comments. There are plenty of people subscribed to threads and this kind of comment just spams their inbox. Only comment if you have something to add to the discussion. If you wish to upvote the idea, issue or existing comment use the appropriate emoji reaction.
Thank you.

@Sam-bernier
Copy link

Sam-bernier commented Oct 12, 2023

ah thank you for the educational message meant to change the way everyone uses github. Maybe you should start a blog to express your opinion to reach more than the few subscribed here or to have an actual point in life rather than being a karen. This is a very important concept, being able to launch from flat files, and the fact it is not in the project is sad and I think that anyone who is on this thread who is not a troll will want this point to get noticed and applied. I understand that it is getting closed and ignored, but it should not.

Thanks for nothing

@tofran
Copy link
Contributor

tofran commented Oct 12, 2023

If this is so "important” feel free to contribute with valuable help. This might even include making a PR to the fork, helping the original author.
Thank you.

@Sam-bernier
Copy link

Sam-bernier commented Oct 12, 2023

Ok, tofran, thanks for your response. I did consider doing what you said, however, after having upvoted this and then looked deeper to see what would be needed, i found the other duplicates of this, including #3578 where louislam says "It is not not worth to spend time on it, so please don't make this pr."

@tofran
Copy link
Contributor

tofran commented Oct 12, 2023

Okay this is actually a pretty relevant point. This project definitely needs help with maintenance.
Has anyone else considered a hard fork for this repo? With focus on production use?

@Sam-bernier
Copy link

what I ended up doing to allow my clients to update via a file is to create a python script that gets the routes and methods from excel with a route and method column they can edit and maintain, uses uptime_kuma_api, and simply does a comparison to add/edit/delete routes. It does require the adding of some environmental variables on setup, but once going, with a simple cron job all they gotta do is edit that file and kuma gets synced. Not quite as simple as a flat file config on startup, but it does the job and takes only a few minutes of tinkering for me to be able to pass onto less technical users, and it keeps up to date, so I am satisfied. Not all nails need a hammer... whatever that means lol...

@CommanderStorm CommanderStorm added area:monitor Everything related to monitors area:deployment related to how uptime kuma can be deployed labels Dec 7, 2023
@CommanderStorm CommanderStorm added the type:new proposing to add a new monitor label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:deployment related to how uptime kuma can be deployed area:monitor Everything related to monitors feature-request Request for new features to be added type:new proposing to add a new monitor
Projects
None yet
Development

No branches or pull requests