go.d.plugin icon indicating copy to clipboard operation
go.d.plugin copied to clipboard

add proxysql service monitoring plugin

Open yasharne opened this issue 3 years ago • 4 comments

Fixes: netdata/netdata#13316


This plugin works for now, but it is not gathering all metrics from ProxySQL. So I will create it as a draft. I just want an initial preview from the maintainers. Here is a screenshot from the working plugin: image

I have a question, if you take a look at the screenshot, there is a text:

questions total number of queries sent from frontends, slow_queries number of queries that ran for longer than the threshold in milliseconds defined in global variable mysql-long_query_time.

I didn't add this section and I don't know where is it coming from, but how can I add my own explanation to some charts?

yasharne avatar Jul 05 '22 14:07 yasharne

I didn't add this section and I don't know where is it coming from, but how can I add my own explanation to some charts?

The info you are referring to is coming from the dashboard_info.js file.

See for instance https://github.com/netdata/netdata/pull/13181 PR.

There are 3 maps:

  • netdataDashboard.menu (info for top-level section (use the collector name), we use it to add an icon, a short description)
  • netdataDashboard.submenu (info for subsections, attached based on charts family)
  • netdataDashboard.context (info for charts, attached based on charts context)

TL;DR that would be a separate PR to netdata/netdata. Not a blocker for this one.

ilyam8 avatar Jul 05 '22 14:07 ilyam8

Thanks for reviewing @ilyam8 , one more thing, some metrics (rows in the tables) are currently in the ToDo state in the ProxySQL project, the key exists but the value is always zero. Should I keep those metrics? or comment them out? or remove them?

yasharne avatar Jul 08 '22 05:07 yasharne

Should I keep those metrics? or comment them out? or remove them?

No need to keep if their values are zeroes. I suggest removing them and adding a TODO comment with a link to the docs (if there is any doc or something we can use to track the state of those metrics).

ilyam8 avatar Jul 08 '22 07:07 ilyam8

Hey, @yasharne. Do you need any help?

ilyam8 avatar Aug 04 '22 11:08 ilyam8

Hi @ilyam8 I was busy with some internal tasks, I will resume this PR shortly after

yasharne avatar Aug 30 '22 10:08 yasharne

Hey, @yasharne. Can you give me a short guide (docker preferable) on how to set up a ProxySQL instance so I can check the collector? Also, we need a readme file.

ilyam8 avatar Sep 09 '22 19:09 ilyam8

Hey, @yasharne. Can you give me a short guide (docker preferable) on how to set up a ProxySQL instance so I can check the collector? Also, we need a readme file.

Hi @ilyam8 I used this repository to test the collector: https://github.com/rongfengliang/proxysql-docker-compose you just have to add network_mode: "host" to the end of the docker-compose to be able to connect using stats:stats username/password

yasharne avatar Sep 10 '22 09:09 yasharne

Thanks, looks good overall. I am going to merge, do some tests, and apply any changes (if needed) in the following PR.

ilyam8 avatar Sep 14 '22 14:09 ilyam8