[Logstash] [Stack Monitoring] Add new metric to identify older version pipelines#34487
Conversation
|
Pinging @elastic/stack-monitoring |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
|
Hey @justinkambic, Do you mind adding some testing steps here? |
|
@chrisronline if you look at the test that failed CI you'll see that we're not counting things correctly using this method. The I'm thinking instead it may be best to mimic the existing pipelines query utilizing |
|
I'm honestly not sure the best way of detecting this. This seems okay to me, but maybe @ycombinator has some thoughts |
|
Yes, I think you're running into elastic/elasticsearch#9571 with trying to get the I think what @justinkambic proposed above should work but I want to spend some more time playing with the aggs. |
Please feel free, I'm open to better suggestions! |
|
It's also worth noting that whatever solution we introduce, we haven't addressed the queue type counts so far. If I am correct we are safe in assuming any of these older pipelines are using in-memory queues, so we could safely count +1 mem queue per "missing" pipeline to keep the overview screen consistent with the pipeline count. |
💔 Build Failed |
|
@justinkambic @chrisronline As promised, I played with the aggs a bit more and came up with the following solution. It involves extending the existing Let me know what you think? |
|
Assuming that works (which I think it should), that looks much better! |
Agreed - testing locally right now. |
|
@ycombinator I think this looks pretty good - would you want to put up a PR with your patch? You're welcome to push to this one if you prefer. |
| </a> | ||
| <a | ||
| ng-if="monitoringMain.instance" | ||
| ng-if="monitoringMain.instance && monitoringMain.pipelineCount > 0 && monitoringMain.shouldDisplayPipelineNav === true" |
There was a problem hiding this comment.
@ycombinator it's possible that the second condition in this ng-if is redundant now, but I did not test that.
💔 Build Failed |
💚 Build Succeeded |
|
I just re-tested this PR and I'm seeing a couple of issues when I run two Logstash nodes, one with v5.6.0 and the other with v6.7.1:
|
|
I'll try to see if I can find some more time to dig into this but it will probably be on the back burner again for a bit. Thanks for testing so thoroughly! 💯 |
|
Hi @justinkambic. I'm just doing some team organization today and I came across this PR and I wanted to know if you think you'll have time to get back to it in the coming weeks or if there's anything that @elastic/stack-monitoring can do to help move it along? Thanks! |
💔 Build Failed |
|
@cachedout I have been busy with 7.2 tasks and getting our 7.3 Uptime work rolling. I am planning to have some time to dedicate to it in the next week or two. If it goes beyond that span we should probably talk about a handoff. |
|
@justinkambic Cool. Thanks! |
|
Error: Index .kibana belongs to a version of Kibana that cannot be automatically migrated. Reset it or use the X-Pack upgrade assistant.kibana7.1.1 version |
|
Hi @HuangJiaRen,
This pull request is not the appropriate place for your question. Please
post your question at
https://discuss.elastic.co/c/kibana.
|
|
Hi again @justinkambic . I'm just checking back in on this. Do you think you'll be able to come back to this in the next few days or would you prefer to discuss a handoff? |
|
Hey @cachedout - sorry for the delayed reply, was OOO for several weeks. Perhaps we should hand it off, I don't see my workload letting up any time soon and this has been on the back burner for quite some time. |
|
@igoristic Does this look like something you might be able to take on? |
|
I'm happy to provide explanation of the approach we were using if it's helpful. IIRC this change was pretty close, but @ycombinator found a case where the changes weren't working like they should and I haven't been back to the work since then. |
|
@cachedout Just caught up on this issue now. This looks like something I can investigate, however, this might be irrelevant now since we no longer support |
💔 Build Failed |
|
Closing this due to inactivity |


EDIT - Adding testing instructions:
Testing
./logstash -e 'input { stdin { } } output { stdout { } }'./bin/logstash-plugin install x-pack.1 Pipelineeven though there are two, because of the reasons discussed in the comments below. It seems like we're all ok with this as a limitation of older versions of Logstash.Summary
Resolves #24279.
As noted in the issue referenced above, older versions of Logstash (pre-6.4.0) will not display in Monitoring's Overview page unless a newer version of LS is also running. The reason this happens is also explained in comments on that issue.
The goal here is to add a second metric that will detect monitoring documents from older Logstash instances. Essentially, if there are any instances without a pipeline.id field, we would treat that as a case where we should ignore the special logic that runs to hide LS until the monitoring index has accrued a sufficient amount of data.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers