-
Notifications
You must be signed in to change notification settings - Fork 0
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
/etc/init.d/beegfs_clientstatsd: 11: .: Can't open /etc/rc.d/init.d/functions #1
Comments
Thank you very much for reporting this. I can absolutely help fix this. What Operating System are you using? |
Thank you.. in all path now the service is running but i am not able to get the graph. |
To get a graph in Grafana, what you want to do is point a telegraf daemon at the JSON log and have it inject the data to your database of choice (I recommend Influx -- it's what the dashboards in the grafana directory use). There are actually multiple daemons for multiple dashboards. You've assuaged the issue for beegfs_clientstatsd service and got it running. This service runs "/usr/bin/beegfstop -cji60" in the background and stores the output in /var/log/beegfs_stats.log (JSON format). ASIDE: The "-cji60" to beegfstop requests client-specific stats (-c) in JSON format (-j) every 60 seconds (-i60). In order to get a graph, you need to then take the data produced by that service and -- through another service in this GitHub repo -- hoist that data into a database. ASIDE: There are multiple services that dump to the same file. For example, the beegfs_clientstatsd service AND the beegfs_serverstatsd service AND the beegfs_userstatsd service ALL write to /var/log/beegfs_stats.log -- the ident property of the JSON data written to the file tells you which daemon wrote data. Likewise, there are three daemons that write to /var/log/beegfs_mstats.log (where m here is for metadata). The services beegfs_clientmstatsd, beegfs_servermstatsd, and beegfs_usermstatsd all write to /var/log/beegfs_mstats.log (where beegfs_stats.log is about regular data and beegfs_mstats.log is about metadata). Again, the ident JSON property of each data segment in either log identifies which service produced the data, be it client, server, or user centric. There are two services that hoist the JSON data. beegfs_stats and beegfs_mstats are the watchers that use telegraf to upload the JSON data to the database. beegfs_stats watches /var/log/beegfs_stats.log We can see here: Line 43 in 66ada22
and here: Line 43 in 66ada22
That the beegfs_stats and beegfs_mstats services/utilities simply invoke telegraf to read either /etc/beegfs_stats.conf or /etc/beegfs_mstats.conf (respectively). The telegraf config is where all the magic happens. For example: https://github.com/FrauBSD/beegfs_stats/blob/master/etc/beegfs_stats.conf Wherein you change "somehost" to be your InfluxDB host. Note that database creation is disabled so that you can get it set up before the data comes in -- upon executing The command that I use to make sure that data has successfully arrived at Influx by-way of telegraf watching the JSON log file is to run
ASIDE: The tags for the mstats database (beegfs_mstats) are identical. Once you have data in the database, it's only a matter of telling Grafana about the InfluxDB data source and then importing the dashboard JSON for the dashboards in this GitHub repo. |
while staring the service
service beegfs_clientstatsd start
/etc/init.d/beegfs_clientstatsd: 11: .: Can't open /etc/rc.d/init.d/functions
below files are missing:-
can help me to fix it
The text was updated successfully, but these errors were encountered: