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

Automation while deploying with kubernetes #882

Open
1 task done
DoNnMyTh opened this issue Nov 5, 2021 · 8 comments
Open
1 task done

Automation while deploying with kubernetes #882

DoNnMyTh opened this issue Nov 5, 2021 · 8 comments
Labels
area:deployment related to how uptime kuma can be deployed feature-request Request for new features to be added

Comments

@DoNnMyTh
Copy link

DoNnMyTh commented Nov 5, 2021

⚠️ 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

I would like to have a way with which i can create a pipeline or some other way to add monitoring probes.

✔️ Solution

To make it more efficient, I am looking for a way to automate the creation of uptime for our different environments. The solution would be to inject JSON files with monitoring points imported to uptime kuma at time of creation.

❓ Alternatives

No response

📝 Additional Context

No response

@DoNnMyTh DoNnMyTh added the feature-request Request for new features to be added label Nov 5, 2021
@deefdragon
Copy link
Contributor

So, I have considered K8S native deployment before. Reading labels akin to how Prometheus does to figure out what to/how often to monitor would very likely be the best way to monitor in kubernetes. Unfortunately, that is rather far down the line. While I will be happy to do the work for it, UK is < 6 Months old, and I don't want to even start working on features for that until we have a stable feature-set. (Assuming Louis is OK with native k8s monitoring getting added at all).

As for the importing of JSON on startup, that's a duplicate of #270.

@DoNnMyTh
Copy link
Author

DoNnMyTh commented Nov 5, 2021

I don't want to monitor k8s services (as of now, as we use NewRelic/Datadog for it). What I want to have is an automated way with which when we are deploring new environment I can automate the deployment of uptime kuma to monitor service health endpoints

@deefdragon
Copy link
Contributor

deefdragon commented Nov 5, 2021

So you have N environments, and for each one want to have a separate Kuma instance that gets deployed along with everything else, which then monitors health endpoints for that specific environment?

Edit: Unfortunately, regardless of the answer, I think my original comment still applies. Native k8s is far down the line, and currently, support of importing on startup is a duplicate of 270.

@DoNnMyTh
Copy link
Author

DoNnMyTh commented Nov 5, 2021

Ok, I'll wait for official K8s support.......

@Richard87
Copy link

Richard87 commented Nov 18, 2021

Hi!

I have alot of domains I want to monitor, and would love to use Uptime-Kuma would you appreciate a PR that adds this feature?

I am proposing a CLI command that I can execute that will find all ingresses with the annotation: uptime-kuma.ingress.kubernetes.io/monitor: true and a optionall argument "--include-ingresses-from-namespaces=default,kuma,superfancy" etc.

@Richard87
Copy link

Richard87 commented Nov 18, 2021

Here is a script I made "map-ingress.js":

"It works on my computer", but it needs to restart the server after loading, to start the monitors.
It should also work out of the box on kubernetes, and use the default application credentials (just make sure it has access to list ingresses in the required namespaces.

Todo:

  • I will also add the ingresses to different groups (All ingresse, NamespaceX)
  • It should be included in the server.js as a job to monitor for new ingresses on demand

@deefdragon, do you have any advice how a script can trigger UK to refresh the list of monitors? Does the script has a future inside of UK, or should it just exist as a extra tool? :)

@travisghansen
Copy link

Ideal for my team would be integration with this: https://github.com/stakater/IngressMonitorController

This would allow us to use a common interface for external services and internal services alike when used in conjunction with this project.

@travisghansen
Copy link

Or even a provider for https://crossplane.io/

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 feature-request Request for new features to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants