An agent monitor plugin is a component of the Scalyr Agent that is extensible and allows for custom Python scripts to read, store, and stream information.
You can find a list of prebuilt plugins here.
You can also build your own Linux plugins using our testing tool here
You can configure plugins in the agent.json file
cat /etc/scalyr-agent-2/agent.json
{
api_key: "API-KEY",
server_attributes: {
serverHost: "app-server-3",
},
logs: [
{ path: "/tmp/log", attributes: {parser: "accessLog"} }
],
monitors: [
{
module: "scalyr_agent.builtin_monitors.mysql_monitor",
database_socket: "default",
database_username: "USERNAME",
database_password: "PASSWORD"
}
]
}
Or as a modular agent.d snippet
cat /etc/scalyr-agent-2/agent.d/monitors.json
{
monitors: [
{
module: "scalyr_agent.builtin_monitors.mysql_monitor",
database_socket: "default",
database_username: "USERNAME",
database_password: "PASSWORD"
}
]
}
Continue to Viewing Linux Data in the UI
Comments
0 comments
Please sign in to leave a comment.