Giter Site home page Giter Site logo

Comments (28)

DieselGaming avatar DieselGaming commented on June 14, 2024

I've edited the original comment with my issue.

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Well from a quick and uneducated look, I believe Grafana uses bungee_redis_bungee_online_proxies from serverIP:port/metrics to get a list of proxies. But, as I said, I don't use RedisBungee - is RedisBungee actually required? It doesn't say that, and there is no clear indication that RedisBungee is required for the entire thing to even work, plus, any way to disable it.

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

RedisBungee is not required. It was actually removed in the latest version. What error are you seeing?

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

885d4c1

I have updated the dashboard to exclude RedisBungee.

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

The Bukkit/Spigot version appears to work as expected.

Just updated to your new dashboard
However, the BungeeCord version's grafana page just loads of random data in place of whats supposed to be there:
Screenshot 2021-08-18 at 01 15 04

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Another thing to note is on the Bukkit version, the Variable is set to use Prometheus, but on this BungeeCord version it is set to Grafana:

Bukkit:
Screenshot 2021-08-18 at 01 18 42

BungeeCord:
Screenshot 2021-08-18 at 01 19 16

Is this intentional?
(I'm completely new to Grafama and set up everything to use this :D)

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

The Bukkit/Spigot version appears to work as expected.

Just updated to your new dashboard
However, the BungeeCord version's grafana page just loads of random data in place of whats supposed to be there:
Screenshot 2021-08-18 at 01 15 04

You need to update prometheus config to

    static_configs:
      - targets: [ 'localhost:9225' ]
        labels:
          proxy_name: 'proxy1'

server_name was changed to proxy_name

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

I've changed server_name to proxy_name, and the only difference I spotted was that the dashboard went from proxies: All to proxies: None

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

remove the dashboard and reimport the dashboard

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

I installed the new plugin (2.0.3), deleted the dashboard, re-imported it and its still showing the same thing, do you have anything in mind that I could show you to help?

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

are you using bungeecord? can you show me the cotent of serverIP:port/metrics?

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

Another thing to note is on the Bukkit version, the Variable is set to use Prometheus, but on this BungeeCord version it is set to Grafana:

Bukkit:
Screenshot 2021-08-18 at 01 18 42

BungeeCord:
Screenshot 2021-08-18 at 01 19 16

Is this intentional?
(I'm completely new to Grafama and set up everything to use this :D)

I have updated the dashboard to use label_values

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

are you using bungeecord? can you show me the cotent of serverIP:port/metrics?

https://ptero.co/udazezibew.shell

Even after re-importing the dashboard it shows that value still, but I'll try again.

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

Does Minecraft Prometheus exporter work for you?

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Does Minecraft Prometheus exporter work for you?

Yes, the Bukkit/Spigot version works as shown here:
Screenshot 2021-08-18 at 14 18 47

And after deleting and re-importing the BungeeCord on Grafana, it still doesn't appear to work/detect the proxy.

EDIT:
Here is my prometheus.yml file >> https://ptero.co/zemevisege.bash
The Minecraft (Spigot) one works, and the BungeeCord one doesn't.

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

can you inspect the grafana dashboard queries?

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Only get console errors on the BungeeCord dashboard.

Every "refresh" interval this error pops up:

{
    "type": "cancelled",
    "cancelled": true,
    "data": null,
    "status": -1,
    "statusText": "Request was aborted",
    "config": {
        "method": "GET",
        "url": "api/annotations",
        "params": {
            "from": 1629315089936,
            "to": 1629315389936,
            "limit": 100,
            "matchAny": false,
            "dashboardId": 9
        },
        "requestId": "grafana-data-source-annotations-Annotations & Alerts-9",
        "retry": 0,
        "headers": {
            "X-Grafana-Org-Id": 1
        },
        "hideFromInspector": true
    },
    "message": "Query error: -1 Request was aborted"
}

Then there is also another WebSocket error which I believe I get on both the Minecraft + BungeeCord pages:
WebSocket connection to 'ws://serverIP:3000/api/live/ws' failed:

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

could you get more details? like any error log you could find?

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Sorry for the incredibly long wait, I suddenly found myself very busy.

Here is my grafana.log after loading the dashboard: https://hastebin.com/lurumewuxi.apache

Where would I find additional logs that may be useful?

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

the request was blocked by CORS.

see more

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

/etc/grafana/grafana.ini

domain = <change this to your ip>

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Ok, I moved both Grafana and Prometheus behind my Nginx reverse proxy. After a quick re-configuration of some things, once again the Minecraft version is working fine and detecting my Hub server, but the BungeeCord one remains to provide placeholder information.

I've also added the
add_header 'Access-Control-Allow-Origin' "*";
To the Grafana nginx config, and the Request Origin is not authorized is still appearing.

I am really stuck now as to why this is happening, and I am very sorry for not being the best help.
Many thanks, however - I hope to eventually resolve this.

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

I have run into this issue, and my solution is

Nginx

add_header "Access-Control-Allow-Origin" "*";
            add_header "Access-Control-Allow-Credentials" "true";
            add_header "Access-Control-Allow-Methods" "GET,HEAD,OPTIONS,POST,PUT";
            add_header "Access-Control-Allow-Headers" "Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers";

grafana.ini

[live]
# allowed_origins is a comma-separated list of origins that can establish connection with Grafana Live.
# If not set then origin will be matched over root_url. Supports wildcard symbol "*".
allowed_origins = <your domain here or *>

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Hi, after adding the missing Nginx headers I no longer get any errors. But placeholder information is still shown. I believe the dashboard doesn't actually detect anything from the Prometheus. Going into the variables settings shows a variable that I think is broken which is why the dashboard isn't showing the data.

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

could you show me what your variables look like?

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

Sorry for the long response I completely forgot to respond and thought I did.

Heres the variables for the bungeecord:

Screenshot 2021-12-16 at 01 55 55

from bungeecord-prometheus-exporter.

DieselGaming avatar DieselGaming commented on June 14, 2024

And for reference, here is the bukkit one. From what I can see its using Prometheus and detecting the "Hub" correctly.

Screenshot 2021-12-16 at 01 57 44

from bungeecord-prometheus-exporter.

weihao avatar weihao commented on June 14, 2024

Might be related to #88

The data source error should be resolved now

from bungeecord-prometheus-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.