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

Issue while trying to use the v2 and tags not appearing in metrics #5131

Open
2 tasks done
ErwanV1 opened this issue Sep 27, 2024 · 4 comments
Open
2 tasks done

Issue while trying to use the v2 and tags not appearing in metrics #5131

ErwanV1 opened this issue Sep 27, 2024 · 4 comments
Labels

Comments

@ErwanV1
Copy link

ErwanV1 commented Sep 27, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I’ve been exploring Uptime Kuma’s v2 Docker images, including pr-test2, nightly2, and others. However, I've encountered some issues:

Tag Behavior: There are multiple Docker tags available for v2 (e.g., pr-test2, nightly2, 2-slim), but some of them don't seem to function as expected. Specifically:

The pr-test2 tag has issues with creating monitors and restarting the container.
The nightly2 tag works better overall but doesn't include certain expected features, such as seeing tags in metrics at /metrics.
Metrics Issues: In nightly2, the metrics don’t show the tags associated with the monitors.
I expect tags to appear in these metrics (for better categorization and visibility), but they do not. Is this a configuration issue, or a limitation of the current nightly2 build?
ocker Tags & Documentation: While I appreciate the variety of Docker tags provided, it's unclear which ones are most stable and recommended for production-like testing, especially for v2. There are several tags for v2 (2, 2-slim, nightly2, pr-test2, etc.), but I’ve encountered issues with some of them, such as pr-test2 failing to work properly with monitors.

Is there a roadmap or recommended guide for testing Uptime Kuma v2, especially for those of us looking to test features such as the tags in metrics?

📝 Error Message(s) or Log

For example, here's the output at http://localhost:3001/metrics:

#TYPE monitor_cert_days_remaining gauge
monitor_cert_days_remaining{monitor_name="toto",monitor_type="http",monitor_url="https://google.com",monitor_hostname="null",monitor_port="null"} 53

🐻 Uptime-Kuma Version

Docker Images: louislam/uptime-kuma:pr-test2 & louislam/uptime-kuma:nightly2

💻 Operating System and Arch

Windows

🌐 Browser

Brave Browser with google

🖥️ Deployment Environment

  • Runtime: Docker 4.26
  • Database: the one auto-configured with Kuma
  • Filesystem used to store the database on:
  • number of monitors: 5
@ErwanV1 ErwanV1 added the help label Sep 27, 2024
@louislam
Copy link
Owner

Should be related to this bug: #5096

@ldubrois
Copy link

I think what @ErwanV1 is also pointing, and I have myself experienced, is the lack of documentation on how to test Kuma v2.

I known / understand it is still in development and is not production ready ; and probably having people testing stuff not yet ready is clearly not your priority.

However, the documentation refers to tags and testing procedures that are not working (from my tests).

In my environment I am trying to run a recent v2 alpha/beta build but I cannot get it working.

@CommanderStorm
Copy link
Collaborator

refers to tags and testing procedures that are not working (from my tests)

What does not work specifically?

trying to run a recent v2 alpha/beta

I don't know of any such release. You likely are referring to https://hub.docker.com/layers/louislam/uptime-kuma/nightly2/images/sha256-3fd33263881e83c8642585e738c7f0c120d28831f8634cb583d33643ffa249fb?context=explore which we published 3 months ago to test if the docker image building works as expected.
Despite the name this is not a nightly release.
See #4500 for what is needed for a beta.0 to be published.

@ldubrois
Copy link

ldubrois commented Oct 1, 2024

What does not work specifically?

I was mainly thinking about :

docker run --rm -it -p 3000:3000 -p 3001:3001 --pull always -e 'UPTIME_KUMA_GH_REPO=<PR REPO, YOU CAN COPY>' louislam/uptime-kuma:pr-test2

I was not able to run it without errors, but I am really not an expert in npm / node / etc

See #4500 for what is needed for a beta.0 to be published.

I have already read (quickly) this issue, but could not found how to test it.

I was alreay using Kuma for some monitoring (about 15 monitors) and now I want to use it to monitor our main web app (expecting about 400 monitors). So I thought about starting with the v2 even if it is not released, and may be to report some issue I found (because it is a new deployment, i can use a alpha/beta).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants