Questions tagged [google-cloud-ops-agent]
41 questions
9
votes
0 answers
How to get google-cloud-ops-agent logging to recognize special "severity" field
I am running ZooKeeper on a google compute instance and trying to setup google-cloud-ops-agent to properly parse the logs. I am most of the way there, but am having trouble getting it to recognize the severity field.
The docs state that severity is…

Danny G
- 581
- 4
- 16
5
votes
2 answers
GCP Compute Engine won't show memory metrics
I want my compute engine VM to show memory usage metrics in the console, I went to this page and install Ops-Agents, restart the service and went to the VM observability section, but still saw a message that the agent is not installed (in the memory…

Avishay28
- 2,288
- 4
- 25
- 47
3
votes
1 answer
After installing ops agent, I am getting floods of error in logs
I have recently upgraded monitoring agent to OPS agent and logs are flooded with following error:
08T11:31:25.681Z#011error#011exporterhelper/queued_retry.go:361#011Exporting failed. Try enabling retry_on_failure config option to retry on retryable…

Komal
- 1,068
- 12
- 23
2
votes
1 answer
Can I configure GCP ops-agent to send logs to other project or publish logs to Pub/Sub topic?
The goal of this context is to achieve a centralized logs storage. I want all of the logs across different projects to be stored under the same project.
By far of my experience on the ops-agent, it always sends logs to the corresponding project's…

kristen_1024
- 33
- 5
2
votes
1 answer
GCP Cloud monitoring for Container Optimized OS
I'm using GCP compute Engine with Container Optimized OS. I enabled Logging and Monitoring on that instance.
Logging and Monitoring has write permissions
But it always show Not applicable for agents in monitoring dashboard.
If I SSH in my…

Azeem Haider
- 1,443
- 4
- 23
- 41
2
votes
2 answers
Google Stackdriver log entry record field logging.googleapis.com/severity vs severity
I have a general log package that wraps logs for Stackdriver- Gets context, severity etc and transform it to LogEntry i.e:
func Log(ctx context.Context, severity Severity, format string, a ...interface{}) {
log.Println(Entry{Severity: severity,…

Avishay28
- 2,288
- 4
- 25
- 47
2
votes
0 answers
Collect performance metrics using Google Cloud Ops Agent and send to Google Cloud Monitoring
I'm looking for a general way to collect performance metrics on several Linux VM instances (Azure, GCP, other) and monitor the metrics in GCP.
On an Ubuntu VM in Azure, I have installed Google Cloud Ops Agent, which uses fluentd (to collect logs)…

commander.trout
- 487
- 6
- 14
1
vote
0 answers
How to write a custom multiline parser for Google Cloud Ops Agent
I am trying to configure google-cloud-ops-agent to collect log records from an application.
Logs are one line or multiline.
Example multiline log:
[2023-02-08 10:32:23] production.ERROR: App\Jobs\Message::handle…

ursuleacv
- 1,119
- 14
- 16
1
vote
1 answer
How to install Ops Agent on Google Container Linux
I am using Google Container Linux as an OS and want to get an alert when the disk is nearly full.
The issue is that it does not have an Ops Agent installed and does not report bytes_used to create an alert…

zino
- 1,222
- 2
- 17
- 47
1
vote
1 answer
Problem monitoring Couchbase using Google Ops Agent
I have enabled the Google Ops Agent on our Couchbase servers, and the logs are collecting fine. The documentation says to ingest metrics you need to specify the endpoint…

Paul Gosling
- 21
- 3
1
vote
0 answers
Unable to install Ops Agent
I'm having issues with installing Ops Agent on individual VM. It will stuck in a Pending: Ops Agent is installing. state and then go Ops Agent undetected.
google-cloud-ops-agent-repo.sh is installed and active.
When I checked the log, it states…

CuppaCoffee
- 124
- 2
- 12
1
vote
1 answer
GCP Ops agent add static field
I'm trying to add a static value field to the ops agent without success. This is the processor I'm using:
modify_fields:
type: modify_fields
fields:
env:
static_value: somenv
Also tried:
modify_fields:
type: modify_fields
fields:
…

llermaly
- 2,331
- 2
- 16
- 29
1
vote
2 answers
Run Ops Agent on Linux in Azure
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…

commander.trout
- 487
- 6
- 14
1
vote
1 answer
GCP Virtual Machine doesnt show Data for Top processes by CPUMetrics Ops Agent
I've installed the ops agent on one of our Virtual machines. The disk, memory, network traffic all show proper data in Monitoring tab.
However, the CPU tab only shows CPU utilization.
The top processes by CPU show "no data available for selected…

Nessi
- 11
- 1
1
vote
0 answers
How to pipe processing fields by regex and json in Google Ops Agent?
/etc/google-cloud-ops-agent/config.yaml
logging:
receivers:
app:
type: files
include_paths: [/www/app-*.log]
processors:
monolog:
type: parse_regex
field: message
regex:…

Gander
- 1,854
- 1
- 23
- 30