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

add mesos slave monitor/statics api #3494

Closed
wants to merge 2 commits into from

Conversation

jcmartins
Copy link

@jcmartins jcmartins commented Nov 21, 2017

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@jcmartins
Copy link
Author

Is there anything more to be added?
How can I help you ?

@danielnelson
Copy link
Contributor

I won't have time to review this until next month, I know we need to look into the problems this code caused when it was originally added and see if we can provide the option to get these metrics without causing issues with the database. This code was disabled in #1686

@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Jan 4, 2018
@danielnelson danielnelson modified the milestones: 1.6.0, 1.7.0 Jan 27, 2018
@danielnelson danielnelson modified the milestones: 1.7.0, 1.8.0 Jun 3, 2018
@@ -63,7 +65,7 @@ var sampleConfig = `
# "system",
# "executors",
# "tasks",
# "messages",
# "messages",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing space from this line

@@ -367,7 +369,7 @@ func getMetrics(role Role, group string) []string {
ret, ok := m[group]

if !ok {
log.Printf("I! [mesos] Unknown %s metrics group: %s\n", role, group)
log.Printf("I! [mesos] Unkown %s metrics group: %s\n", role, group)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert back to proper spelling of Unknown

jf.Fields["executor_id"] = task.ExecutorID

acc.AddFields("mesos_tasks", jf.Fields, tags, timestamp)
acc.AddFields("mesos_monitor_statics", jf.Fields, tags, timestamp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your reasoning for changing the measurement name from mesos_tasks to mesos_monitor_statistics?

@@ -326,7 +329,7 @@ func TestMesosSlave(t *testing.T) {
m := Mesos{
Masters: []string{},
Slaves: []string{slaveTestServer.Listener.Addr().String()},
// SlaveTasks: true,
//SlaveMonitorStatics: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be uncommented?

@jcmartins
Copy link
Author

Why not parse all information about mesos/state??
It's have all information about mesos ( master, slaves and framework)

@glinton
Copy link
Contributor

glinton commented Aug 21, 2018

As Daniel mentioned, the code to parse all information about mesos/state was commented out because it seemed to be causing problems. I reviewed the PR though so you can address those comments and update your branch and we'll be that much closer to merging if the issues become less.

@russorat russorat modified the milestones: 1.8.0, 1.9.0 Sep 4, 2018
@danielnelson danielnelson modified the milestones: 1.9.0, 1.10 Oct 29, 2018
@russorat russorat modified the milestones: 1.10.0, 1.11.0 Jan 14, 2019
@ridv
Copy link

ridv commented Apr 5, 2019

@glinton or @danielnelson sorry to bring up an old stale PR but is there any technical problems with re-enabling per task granularity for Mesos now that TSI exists?

@danielnelson
Copy link
Contributor

I'm okay with this going forward, we should probably just put a warning in the README like we did for dcos and other high cardinality inputs.

@russorat
Copy link
Contributor

@jcmartins please let us know when you've addressed the requested changes and fixed the failing checks and conflicts.

@danielnelson danielnelson removed this from the 1.12.0 milestone Aug 20, 2019
@sjwang90
Copy link
Contributor

@jcmartins Checking in if this is something you'd like to finish or to see if anyone else would like to take this over, thanks.

@sjwang90 sjwang90 added the wip label Nov 18, 2020
@sjwang90
Copy link
Contributor

sjwang90 commented Feb 6, 2021

Closing this issue due to inactivity.

If you would still like this plugin, please submit it as an external plugin that can be used with execd to run seamlessly with Telegraf.

@sjwang90 sjwang90 closed this Feb 6, 2021
@sjwang90 sjwang90 added closed/external-candidate external plugin Plugins that would be ideal external plugin and expedite being able to use plugin w/ Telegraf labels Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external plugin Plugins that would be ideal external plugin and expedite being able to use plugin w/ Telegraf feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants