-
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
Support to CEPH input. #3311
Support to CEPH input. #3311
Changes from 10 commits
de6ae45
dd0f784
98715a7
0c8ae90
a1ff1f7
41c445d
86982ce
8868254
b082c45
5f8dd37
208818c
b8ca266
1011f02
747debd
fbe6ba2
66bd1d4
06fd61c
85a3c26
9dec734
9cec164
596fd29
46ad8db
9c8e65a
48c0e38
d289374
431c99f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-ceph]] | ||
== ceph Module | ||
|
||
This is the ceph Module. | ||
|
||
|
||
|
||
[float] | ||
=== Example Configuration | ||
|
||
The ceph module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: ceph | ||
metricsets: ["perf"] | ||
enabled: true | ||
period: 1s | ||
|
||
ceph: | ||
# location of ceph binary | ||
binary_path = "/usr/bin/ceph" | ||
# | ||
##### | ||
### MetricSet perf gather statistics via the admin socket, requires socket_dir, mon_prefix, osd_prefix and socket_suffix | ||
##### | ||
# directory in which to look for socket files | ||
socket_dir = "/var/run/ceph" | ||
# prefix of MON and OSD socket files, used to determine socket type | ||
mon_prefix = "ceph-mon" | ||
osd_prefix = "ceph-osd" | ||
# suffix used to identify socket files | ||
socket_suffix = "asok" | ||
# | ||
##### | ||
### MetricSets status,df and poolio gather statistics via ceph commands, requires ceph_user and ceph_config | ||
##### | ||
# Ceph user to authenticate as, ceph will search for the corresponding keyring | ||
# e.g. client.admin.keyring in /etc/ceph | ||
# Consult the ceph documentation for more detail on keyring generation. | ||
user = "client.admin" | ||
# Ceph configuration to use to locate the cluster | ||
config_path = "/etc/ceph/ceph.conf" | ||
|
||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-ceph-df,df>> | ||
|
||
* <<metricbeat-metricset-ceph-osdpoolstats,osdpoolstats>> | ||
|
||
* <<metricbeat-metricset-ceph-perf,perf>> | ||
|
||
* <<metricbeat-metricset-ceph-status,status>> | ||
|
||
include::ceph/df.asciidoc[] | ||
|
||
include::ceph/osdpoolstats.asciidoc[] | ||
|
||
include::ceph/perf.asciidoc[] | ||
|
||
include::ceph/status.asciidoc[] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-ceph-df]] | ||
include::../../../module/ceph/df/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-ceph,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/ceph/df/_meta/data.json[] | ||
---- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-ceph-osdpoolstats]] | ||
include::../../../module/ceph/osdpoolstats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-ceph,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/ceph/osdpoolstats/_meta/data.json[] | ||
---- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-ceph-perf]] | ||
include::../../../module/ceph/perf/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-ceph,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/ceph/perf/_meta/data.json[] | ||
---- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-ceph-status]] | ||
include::../../../module/ceph/status/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-ceph,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/ceph/status/_meta/data.json[] | ||
---- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +0,0 @@ | ||
###################### Metricbeat Configuration Example ####################### | ||
|
||
# This file is an example configuration file highlighting only the most common | ||
# options. The metricbeat.full.yml file from the same directory contains all the | ||
# supported options with more comments. You can use it as a reference. | ||
# | ||
# You can find the full configuration reference here: | ||
# https://www.elastic.co/guide/en/beats/metricbeat/index.html | ||
|
||
#========================== Modules configuration ============================ | ||
metricbeat.modules: | ||
|
||
#------------------------------- System Module ------------------------------- | ||
- module: system | ||
metricsets: | ||
# CPU stats | ||
- cpu | ||
|
||
# System Load stats | ||
- load | ||
|
||
# Per CPU core stats | ||
#- core | ||
|
||
# IO stats | ||
#- diskio | ||
|
||
# Per filesystem stats | ||
- filesystem | ||
|
||
# File system summary stats | ||
- fsstat | ||
|
||
# Memory stats | ||
- memory | ||
|
||
# Network stats | ||
- network | ||
|
||
# Per process stats | ||
- process | ||
|
||
# Sockets (linux only) | ||
#- socket | ||
enabled: true | ||
period: 10s | ||
processes: ['.*'] | ||
|
||
|
||
|
||
#================================ General ===================================== | ||
|
||
# The name of the shipper that publishes the network data. It can be used to group | ||
# all the transactions sent by a single shipper in the web interface. | ||
#name: | ||
|
||
# The tags of the shipper are included in their own field with each | ||
# transaction published. | ||
#tags: ["service-X", "web-tier"] | ||
|
||
# Optional fields that you can specify to add additional information to the | ||
# output. | ||
#fields: | ||
# env: staging | ||
|
||
#================================ Outputs ===================================== | ||
|
||
# Configure what outputs to use when sending the data collected by the beat. | ||
# Multiple outputs may be used. | ||
|
||
#-------------------------- Elasticsearch output ------------------------------ | ||
output.elasticsearch: | ||
# Array of hosts to connect to. | ||
hosts: ["localhost:9200"] | ||
|
||
# Optional protocol and basic auth credentials. | ||
#protocol: "https" | ||
#username: "elastic" | ||
#password: "changeme" | ||
|
||
#----------------------------- Logstash output -------------------------------- | ||
#output.logstash: | ||
# The Logstash hosts | ||
#hosts: ["localhost:5044"] | ||
|
||
# Optional SSL. By default is off. | ||
# List of root certificates for HTTPS server verifications | ||
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"] | ||
|
||
# Certificate for SSL client authentication | ||
#ssl.certificate: "/etc/pki/client/cert.pem" | ||
|
||
# Client Certificate Key | ||
#ssl.key: "/etc/pki/client/cert.key" | ||
|
||
#================================ Logging ===================================== | ||
|
||
# Sets log level. The default log level is info. | ||
# Available log levels are: critical, error, warning, info, debug | ||
#logging.level: debug | ||
|
||
# At debug level, you can selectively enable logging only for some components. | ||
# To enable all selectors use ["*"]. Examples of other selectors are "beat", | ||
# "publish", "service". | ||
#logging.selectors: ["*"] | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
- module: ceph | ||
metricsets: ["perf"] | ||
enabled: true | ||
period: 1s | ||
|
||
ceph: | ||
# location of ceph binary | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest to split up the config into config.full.yml and config.yml and only have the extensive options in the full file. See other metricsets for examples. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Working. |
||
binary_path = "/usr/bin/ceph" | ||
# | ||
##### | ||
### MetricSet perf gather statistics via the admin socket, requires socket_dir, mon_prefix, osd_prefix and socket_suffix | ||
##### | ||
# directory in which to look for socket files | ||
socket_dir = "/var/run/ceph" | ||
# prefix of MON and OSD socket files, used to determine socket type | ||
mon_prefix = "ceph-mon" | ||
osd_prefix = "ceph-osd" | ||
# suffix used to identify socket files | ||
socket_suffix = "asok" | ||
# | ||
##### | ||
### MetricSets status,df and poolio gather statistics via ceph commands, requires ceph_user and ceph_config | ||
##### | ||
# Ceph user to authenticate as, ceph will search for the corresponding keyring | ||
# e.g. client.admin.keyring in /etc/ceph | ||
# Consult the ceph documentation for more detail on keyring generation. | ||
user = "client.admin" | ||
# Ceph configuration to use to locate the cluster | ||
config_path = "/etc/ceph/ceph.conf" | ||
|
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.
Is this working? This looks like invalid yaml. All config options related to a metricset should be in the module itself.
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.
Actually no. I commited a new version with this file corrected now.