-
Notifications
You must be signed in to change notification settings - Fork 102
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
riemann-dash does not allow setting host as documented. #11
Comments
Good catch! This is a total lie; artifact of outdated documentation. Pretty much all configuration, including the Riemann server, happens in the browser now. My apologies! |
Oh, okay! How do I configure riemann-dash to hit a non-localhost riemann server, then? I have a riemann-dash running at http://riemann.troutwine.us:4567/ and a server at the same host on the default port. When I enter Is there any way to make riemann-dash default to a non-localhost server? |
@blt I have the same config as you and it's working, but the default port for the websockets is 5556 |
@aphyr there's another bit of info that may be useful to have on the README:
I needed to secure my installation behind a reverse proxy and it took me a while to find out that it was Sinatra's configuration :) |
@default50 Hmm, even after correcting the port, nothing. My riemann-dash is running http://riemann.troutwine.us:4567/ and when I boot riemann server I find:
which seems good. nmapping the server:
so 5556 doesn't look open. There's no firewall or anything on this box: it's a vanilla Debian Wheezy install. Anyway, when I enter Am I misunderstanding something here? My riemann server config: ; vim: filetype=clojure
(logging/init :file "riemann.log")
; Listen on the local interface over TCP (5555), UDP (5555), and websockets; (5556)
(let [host "166.78.122.49"]
(tcp-server :host host)
(udp-server :host host)
(ws-server :host host))
; Expire old events from the index every 5 seconds.
(periodically-expire 5)
; Keep events in the index for 5 minutes by default.
(let [index (default :ttl 300 (update-index (index)))]
; Inbound events will be passed to these streams:
(streams
; Index all events immediately.
index
; Calculate an overall rate of events.
(with {:metric 1 :host nil :state "ok" :service "events/sec"}
(rate 5 index))
; Log expired events.
(expired
(fn [event] (info "expired" event)))
)) and the dash config:
|
On 03/05/2013 09:43 AM, Brian L. Troutwine wrote:
An interesting discovery from last week: the :host option to Aleph --Kyle |
Looks like 5556 is only binding on localhost:
|
On 03/05/2013 09:59 AM, Brian L. Troutwine wrote:
More specifically, only on ipv6. Try passing --Kyle |
That's not localhost, it's 0.0.0.0 equivalent of IPv6 @blt. BTW, I'm running on vanilla Wheezy too, on EC2. Of course I have opened up port 5556 on the firewall. This is my netstat output:
Note: IP addresses hidden on purpose. |
@default50 Quite so; I'm less familiar with IPv6 than I should be. @aphyr Starting up riemann server:
and the netstat output is as expected:
I still don't see 5556 as open, via nmap. I continue to be unable to attach the dashboard to the server on riemann.troutwine.us. (I am correct in believing that I need only add the server name/port into the box at the top right-hand corner and hit enter?) |
On 03/05/2013 10:16 AM, Brian L. Troutwine wrote:
If nmap reports the port is closed, you're probably looking at a --Kyle |
@blt you only need that. nmap doesn't scan all 64k ports by defaul. Your port looks open, even from here:
I could even telnet into it! ;)
Moreover, and sorry if I'm tripping on you, but I loaded your dash on my browser (port 4567) and changed the URL to riemann.troutwine.us:5556 which stopped the message about lost connections. Changed the grid query to true and saw everything empty, but didn't got an error either (maybe you aren't pushing any data into riemann yet?) I suspect your client is misbehaving, or maybe you (as a client) are behind some outgoing firewall? |
Hmm... On the box itself:
@default50's input suggests I'm misusing nmap. @default50 I can see from the logs someone from 190.176.144.135 connecting to the server. Please, be my guest, if that is you. This is a scrub box entirely. It's possible that I don't understand how to make use of the dashboard, is all. Is there a video tutorial on its use? |
No, but I'll link to one if you make it! You should just have to type --Kyle |
On 03/05/2013 10:28 AM, Sebastian Cruz wrote:
Oh, it might also be possible that your browser doesn't support |
@blt that's my IP :) Hi! Just configured your dash and saved the config, and your described usage is as it's meant to be. Some tests that could be useful:
I'm pretty sure it's the client's problem only (browser). |
Hi, @default50! I think simply it's that I don't understand how to use the dashboard. How did you, for instance, configure the dashboard? I undertand how you edited the view to read "This was changed by default50 as a test, sorry!", but not what you did to make a certain server default. I've used latest Chrome, Safari and Firefox on two separate OS X machines, and Firefox/Chrome on a linux box from a different ISP. Surely my problem is a lack of knowledge about the dashboard's operating. |
On 03/05/2013 11:08 AM, Brian L. Troutwine wrote:
The views, workspaces, and the server address you type in to the top --Kyle |
Oh, I see! Thank you very much, @aphyr and @default50. |
The riemann-dash documentation implies that setting
config[:client][:host]
will target a non-default riemann server. When this setting is left at its default I find:however
The text was updated successfully, but these errors were encountered: