ops-agent | repository contains the Ops Agents | GCP library
kandi X-RAY | ops-agent Summary
kandi X-RAY | ops-agent Summary
This repository contains the Ops Agents (Linux and Windows) that are part of the Google Cloud Operations product suite (specifically Cloud Logging and Cloud Monitoring). The agents gather logs and metrics from your Google Compute Engine instances and send them to Cloud Logging and Cloud Monitoring. See documentation at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- mergeConfigs merges the merged configs into original .
- install installs the service .
- initServices initializes the services
- Generate returns a string representation of the ModularConfig
- javaLogParsingComponents returns a list of all the loggable components .
- newValidator creates a new validator
- mergeConfFiles merges built - in config files into the provided map .
- mapKeys returns a map of key - value pairs .
- Main entry point .
- GenerateFilesFromConfig generates the files from a config file and writes them to outDir .
ops-agent Key Features
ops-agent Examples and Code Snippets
Community Discussions
Trending Discussions on ops-agent
QUESTION
I am having an issue where Google Cloud Ops Agent logging gathers a lot of data and fills up my entire debian server hard drive in about 3 weeks due to the ever increasing size of the log file.
I do not want to increase the size of my server hard drive.
Does anyone know how to configure Google Cloud Ops Agent so that it only retains log data for the previous 7 days ?
EDIT: Google Cloud Ops Agent log file is stored in directory below
/var/log/google-cloud-ops-agent/subagents/logging-module.log
...ANSWER
Answered 2022-Mar-29 at 12:52I faced the same issue recently while using agent 2.11.0. And it's not just an enormous log file, it's also a ridiculous CPU usage! Check it out in htop. If you open the log file you'll see it spamming errors about buffer chunks. Apparently, they got broken smh, so the agent can't read them and send away. Thus, high IO and CPU usage.
The solution is to stop the service:
QUESTION
I'm trying to install a Ops agent on a Google VM and some index files failed to download (error 404)
Command i used following documentation :
curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
sudo bash add-google-cloud-ops-agent-repo.sh --also-install
And i got error on those packages :
https://packages.cloud.google.com/apt google-cloud-ops-agent--all/main amd64 Packages http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish/main amd64 Packages
Include in the error message i also got this : https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file
Does someone got the same issue recently ?
Here is the Log i got :
W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/impish/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch https://packages.cloud.google.com/apt/dists/google-cloud-ops-agent--all/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
[.....]
add-google-cloud-ops-agent-repo.sh: line 202: lsb_release: command not found
[....]
W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu impish Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://packages.cloud.google.com/apt google-cloud-ops-agent--all Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/impish/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch https://packages.cloud.google.com/apt/dists/google-cloud-ops-agent--all/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
...ANSWER
Answered 2022-Jan-05 at 19:26This error likely indicates you're installing the agent on an unsupported OS. Please check that your OS is in the list here:
https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent#supported_vms
QUESTION
I would like to be able to monitor (logs, performance metrics) VM's in Azure (and other clouds) using Google Cloud Logging and Monitoring.
As a proof of concept,
- I'm using an Ubuntu 20.04 instance in Azure
- I have installed Ops Agent
- I have put a key file in place for a service account with the required roles (Logging, Monitoring)
When I check the status of the Ops Agent, I see the following (mildly redacted)
...ANSWER
Answered 2022-Feb-16 at 23:16Ops Agent is looking for credentials and not finding them.
This means you either did not copy the service account to the correct location with the correct file access permissions OR you did not set up the environment variable GOOGLE_APPLICATION_CREDENTIALS correctly with the correct file access permissions.
The agent then checks the metadata service which does not support Google OAuth access tokens (Azure provides MSI credentials if setup)
QUESTION
I am trying to install the Ops Agent from the GCP yum repo: https://packages.cloud.google.com/yum/repos/
I see there are 4 different packages for this agent:
...ANSWER
Answered 2022-Feb-04 at 15:02In easy words to say, those suffixes inform which versions this package contains. 1 contains all versions 1.X.X, 2 contains 1.X.X and 2.X.X, 3 would contain 1.X.X, 2.X.X and 3.X.X. Suffix All
contains all previous versions.
For example google-cloud-ops-agent-el7-x86_64-0 you will see that it's like general version, without any packages:
QUESTION
I have GCP Ops Agent for JVM Monitoring in one of the VMs.
https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/jvm
This works fine with one jvm installed, I am able to see the data in gcp monitoring ui the data which is collected is shown in the UI.
The following configuration is used in /etc/google-cloud-ops-agent/config.yaml
ANSWER
Answered 2021-Dec-23 at 06:21Currently, this is not supported with Multiple JVM in a single machine.
Reference https://github.com/GoogleCloudPlatform/ops-agent/issues/299#issuecomment-998215911
QUESTION
I have Apache2 installed in one of VMs in Google Cloud Platform. I installed Ops Agent and configured it like below per the docs:
...ANSWER
Answered 2021-Jul-16 at 18:53When I tried to debug using the command cat /var/log/google-cloud-ops-agent/subagents/*.log | grep apache
it returned nothing. It should show something similar to below:
QUESTION
I have 2 terraform pipelines in azure devops:
1- provisions vnet and azure container instance and registers it as an agent pool node. 2- uses the self hosted agent pool which uses the aci from the first pipeline to provision other stuff.
The second pipeline fails when it reached init with the following message
...ANSWER
Answered 2020-Dec-11 at 09:46It looks like an issue with the network settings of the ACI created in your first pipeline.
You can check the network settings of the ACI, and make sure you can connect to the internet from the ACI.
Please check the examples in this blog to provision self-hosted agents on ACI.
See the this similar issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ops-agent
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page