ops-agent | repository contains the Ops Agents | GCP library

 by   GoogleCloudPlatform Go Version: 2.34.0 License: Apache-2.0

kandi X-RAY | ops-agent Summary

kandi X-RAY | ops-agent Summary

ops-agent is a Go library typically used in Cloud, GCP, Prometheus applications. ops-agent has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

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

            kandi-support Support

              ops-agent has a low active ecosystem.
              It has 114 star(s) with 61 fork(s). There are 21 watchers for this library.
              There were 5 major release(s) in the last 12 months.
              There are 29 open issues and 66 have been closed. On average issues are closed in 333 days. There are 54 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ops-agent is 2.34.0

            kandi-Quality Quality

              ops-agent has no bugs reported.

            kandi-Security Security

              ops-agent has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ops-agent is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ops-agent releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ops-agent and discovered the below as its top functions. This is intended to give you an instant insight into ops-agent implemented functionality, and help decide if they suit your requirements.
            • 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 .
            Get all kandi verified functions for this library.

            ops-agent Key Features

            No Key Features are available at this moment for ops-agent.

            ops-agent Examples and Code Snippets

            No Code Snippets are available at this moment for ops-agent.

            Community Discussions

            QUESTION

            Google Cloud Ops Agent
            Asked 2022-Mar-29 at 12:52

            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:52

            I 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:

            Source https://stackoverflow.com/questions/71556991

            QUESTION

            Error while installing ops agent on Google VM
            Asked 2022-Mar-15 at 12:35

            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:26

            This 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

            Source https://stackoverflow.com/questions/70595756

            QUESTION

            Run Ops Agent on Linux in Azure
            Asked 2022-Mar-04 at 20:19

            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,

            When I check the status of the Ops Agent, I see the following (mildly redacted)

            ...

            ANSWER

            Answered 2022-Feb-16 at 23:16

            Ops 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)

            Source https://stackoverflow.com/questions/71150304

            QUESTION

            Which is the right package in the yum repo for Ops Agent on RHEL7?
            Asked 2022-Feb-04 at 15:02

            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:02

            In 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:

            Source https://stackoverflow.com/questions/70984108

            QUESTION

            GCP Ops Agent | Jvm Monitoring | Multiple process | Java | Single VM |
            Asked 2021-Dec-23 at 06:21

            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:21

            Currently, this is not supported with Multiple JVM in a single machine.

            Reference https://github.com/GoogleCloudPlatform/ops-agent/issues/299#issuecomment-998215911

            Source https://stackoverflow.com/questions/70308625

            QUESTION

            Monitoring Apache2 in Google Cloud with Ops Agent
            Asked 2021-Jul-16 at 18:53

            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:53

            When 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:

            Source https://stackoverflow.com/questions/68413185

            QUESTION

            Terraform INIT failing with azure Devops self hosted agent on ACI
            Asked 2020-Dec-14 at 11:33

            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:46

            It 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.

            Source https://stackoverflow.com/questions/65242452

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ops-agent

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/GoogleCloudPlatform/ops-agent.git

          • CLI

            gh repo clone GoogleCloudPlatform/ops-agent

          • sshUrl

            git@github.com:GoogleCloudPlatform/ops-agent.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular GCP Libraries

            microservices-demo

            by GoogleCloudPlatform

            awesome-kubernetes

            by ramitsurana

            go-cloud

            by google

            infracost

            by infracost

            python-docs-samples

            by GoogleCloudPlatform

            Try Top Libraries by GoogleCloudPlatform

            microservices-demo

            by GoogleCloudPlatformPython

            terraformer

            by GoogleCloudPlatformGo

            training-data-analyst

            by GoogleCloudPlatformJupyter Notebook

            python-docs-samples

            by GoogleCloudPlatformJupyter Notebook

            golang-samples

            by GoogleCloudPlatformGo