-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Introduce mode: stack-monitoring for Metricbeat stack modules #18610
Introduce mode: stack-monitoring for Metricbeat stack modules #18610
Conversation
This issue doesn't have a |
❕ Build Aborted
Expand to view the summary
Build stats
Log outputExpand to view the last 100 lines of log output
|
0290952
to
2ae9beb
Compare
💔 Tests FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
cf2ece5
to
f65b834
Compare
@@ -65,11 +65,30 @@ func TestGetVertexClusterUUID(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestXPackEnabledMetricSets(t *testing.T) { | |||
func TestXPackEnabledMetricsets(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making this consistent with other stack modules' tests.
base, | ||
http, | ||
config.GetMode() == elastic.ModeStackMonitoring, | ||
}, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why GitHub thinks this is a rename! I deleted the file on the left completely and created the file on the right completely from scrath.
Pinging @elastic/integrations-services (Team:Services) |
Pinging @elastic/stack-monitoring (Stack monitoring) |
This pull request doesn't have a |
4332971
to
16a503e
Compare
We're not sure if the |
What does this PR do?
Introduces a new
mode
setting for Metricbeat Elastic Stack modules. The valid values for this setting aredefault
orstack-monitoring
. This setting replaces the oldxpack.enabled
setting, which is still available but deprecated after this PR.Users should convert from using the deprecated setting to the new setting as shown below.
xpack.enabled: false
(default value)mode: default
(default value)xpack.enabled: true
mode: stack-monitoring
Corresponding to the setting change / deprecation, users should also use the new module configuration variant name as shown below.
metricbeat modules enable elasticsearch-xpack
metricbeat modules enable elasticsearch-stack-monitoring
metricbeat modules disable elasticsearch-xpack
metricbeat modules disable elasticsearch-stack-monitoring
metricbeat modules enable kibana-xpack
metricbeat modules enable kibana-stack-monitoring
metricbeat modules disable kibana-xpack
metricbeat modules disable kibana-stack-monitoring
metricbeat modules enable logstash-xpack
metricbeat modules enable logstash-stack-monitoring
metricbeat modules disable logstash-xpack
metricbeat modules disable logstash-stack-monitoring
metricbeat modules enable beat-xpack
metricbeat modules enable beat-stack-monitoring
metricbeat modules disable beat-xpack
metricbeat modules disable beat-stack-monitoring
Why is it important?
A couple of reasons:
xpack
in as many places as possible, andxpack.enabled
) and module configuration variant suffix (-xpack
) are not very descriptive of their purpose.What does this PR NOT do?
As mentioned above, one of the motivations for the
mode
setting is to get rid of the termxpack
. This term is still used in code in identifiers. This PR does not update those uses. That will be done in a follow up PR, mainly to keep the scope and size of this PR small.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues