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

inputs.ceph with Microceph | Error Reading from Socket #16323

Open
WreckingBANG opened this issue Dec 17, 2024 · 0 comments
Open

inputs.ceph with Microceph | Error Reading from Socket #16323

WreckingBANG opened this issue Dec 17, 2024 · 0 comments
Labels
bug unexpected problem or unintended behavior

Comments

@WreckingBANG
Copy link

Relevant telegraf.conf

# # Collects performance metrics from the MON, OSD, MDS and RGW nodes
# # in a Ceph storage cluster.
  [[inputs.ceph]]
#   ## This is the recommended interval to poll. Too frequent and you
#   ## will lose data points due to timeouts during rebalancing and recovery
    interval = '1m'
#
#   ## All configuration values are optional, defaults are shown below
#
#   ## location of ceph binary
#   ceph_binary = "/usr/bin/ceph"
#
#   ## directory in which to look for socket files
    socket_dir = "/var/snap/microceph/1228/run/"
#
#   ## prefix of MON and OSD socket files, used to determine socket type
    mon_prefix = "ceph-mon.dockerSwarm-11"
#   osd_prefix = "ceph-osd"
    mds_prefix = "ceph-mds.dockerSwarm-11"
#   rgw_prefix = "ceph-client"
#
#   ## suffix used to identify socket files
    socket_suffix = "asok"
#
#   ## Ceph user to authenticate as, ceph will search for the corresponding
#   ## keyring e.g. client.admin.keyring in /etc/ceph, or the explicit path
#   ## defined in the client section of ceph.conf for example:
#   ##
#   ##     [client.telegraf]
#   ##         keyring = /etc/ceph/client.telegraf.keyring
#   ##
#   ## Consult the ceph documentation for more detail on keyring generation.
    ceph_user = "client.admin"
#
#   ## Ceph configuration to use to locate the cluster
    ceph_config = "/var/snap/microceph/1228/conf/ceph.conf"
#
#   ## Whether to gather statistics via the admin socket
    gather_admin_socket_stats = true
#
#   ## Whether to gather statistics via ceph commands, requires ceph_user
#   ## and ceph_config to be specified
    gather_cluster_stats = true

Logs from Telegraf

Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z W! [inputs.ceph] failed to dump perf schema from socket "/var/snap/microceph/1228/run/ceph-mds.dockerSwarm-11.asok": error running ceph schema: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z E! [inputs.ceph] Error in plugin: error reading from socket "/var/snap/microceph/1228/run/ceph-mds.dockerSwarm-11.asok": error running ceph dump: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z W! [inputs.ceph] failed to dump perf schema from socket "/var/snap/microceph/1228/run/ceph-mon.dockerSwarm-11.asok": error running ceph schema: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z E! [inputs.ceph] Error in plugin: error reading from socket "/var/snap/microceph/1228/run/ceph-mon.dockerSwarm-11.asok": error running ceph dump: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z W! [inputs.ceph] failed to dump perf schema from socket "/var/snap/microceph/1228/run/ceph-osd.1.asok": error running ceph schema: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z E! [inputs.ceph] Error in plugin: error reading from socket "/var/snap/microceph/1228/run/ceph-osd.1.asok": error running ceph dump: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z W! [inputs.ceph] failed to dump perf schema from socket "/var/snap/microceph/1228/run/ceph-osd.pid": error running ceph schema: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z E! [inputs.ceph] Error in plugin: error reading from socket "/var/snap/microceph/1228/run/ceph-osd.pid": error running ceph dump: exit status 1
Dec 17 16:33:00 dockerSwarm-11 telegraf[669874]: 2024-12-17T15:33:00Z E! [inputs.ceph] Error in plugin: error executing command: error running ceph "status": exit status 1

System info

Telegraf 1.33.0 (git: HEAD@67902005), Debian 12

Docker

No response

Steps to reproduce

  1. Setup Microceph (Snap)
  2. Symlink the Microceph Binaries to /usr/bin/ceph
  3. Replicate the config like me.
    ...

Expected behavior

Normal Monitoring of Ceph without any Errors.

Actual behavior

No Monitoring Output and i get Errors.

Additional info

No response

@WreckingBANG WreckingBANG added the bug unexpected problem or unintended behavior label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant