Comments (28)
I've edited the original comment with my issue.
from bungeecord-prometheus-exporter.
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.
RedisBungee is not required. It was actually removed in the latest version. What error are you seeing?
from bungeecord-prometheus-exporter.
I have updated the dashboard to exclude RedisBungee.
from bungeecord-prometheus-exporter.
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:
from bungeecord-prometheus-exporter.
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:
Is this intentional?
(I'm completely new to Grafama and set up everything to use this :D)
from bungeecord-prometheus-exporter.
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:
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.
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.
remove the dashboard and reimport the dashboard
from bungeecord-prometheus-exporter.
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.
are you using bungeecord? can you show me the cotent of serverIP:port/metrics?
from bungeecord-prometheus-exporter.
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:
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.
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.
Does Minecraft Prometheus exporter work for you?
from bungeecord-prometheus-exporter.
Does Minecraft Prometheus exporter work for you?
Yes, the Bukkit/Spigot version works as shown here:
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.
can you inspect the grafana dashboard queries?
from bungeecord-prometheus-exporter.
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.
could you get more details? like any error log you could find?
from bungeecord-prometheus-exporter.
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.
the request was blocked by CORS.
from bungeecord-prometheus-exporter.
/etc/grafana/grafana.ini
domain = <change this to your ip>
from bungeecord-prometheus-exporter.
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.
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.
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.
could you show me what your variables look like?
from bungeecord-prometheus-exporter.
Sorry for the long response I completely forgot to respond and thought I did.
Heres the variables for the bungeecord:
from bungeecord-prometheus-exporter.
And for reference, here is the bukkit one. From what I can see its using Prometheus and detecting the "Hub" correctly.
from bungeecord-prometheus-exporter.
Might be related to #88
The data source error should be resolved now
from bungeecord-prometheus-exporter.
Related Issues (20)
- Error collecting metrics when RedisBungee is not installed HOT 7
- Separate Hosted HOT 3
- NoClassDefFoundError: RedisBungeeAPI HOT 6
- CVE-2023-40167 (Medium) detected in jetty-http-11.0.15.jar
- CVE-2023-36478 (High) detected in jetty-http-11.0.15.jar
- CVE-2023-51074 (Medium) detected in json-path-2.7.0.jar
- Velocity plugin error
- Listening host not respected with Velocity
- Failed to collect metric 'OnlinePlayer' HOT 3
- Hourly & Daily Stats Issue HOT 5
- WS-2021-0419 (High) detected in gson-2.8.6.jar
- Help on setting up HOT 2
- No plugin.yml in src folder HOT 1
- I can't open x.x.x.x/metrics HOT 2
- `bungeecord_online_players` gauge metrics accumulate to unusually high values HOT 8
- Missing bungeecord-prometheus-exporter.jar file HOT 6
- No data in dashboard HOT 4
- Very unclear what to do- Using vps HOT 2
- Importing dashboard goes wrong? HOT 4
- CVE-2023-1370 (High) detected in json-smart-2.4.7.jar HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bungeecord-prometheus-exporter.