prometheus-community / prometheus-community/stackdriver_exporter

Need Systemd config for Stackdriver_exporter

Open
#137 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
295
Forks
117
Avg merge
9d 14h
Merged PRs (30d)
7

Description

AII!
1.Iam trying to run the stack driver Exporter query as a service but it is not working for me. Could some one help me?

[Unit]
Description=Stackdriver exporter
After=network-online.target
Before=shutdown.target reboot.target
[Service]
ExecStart=/bin/bash /root/stackdriver_exporter-0.11.0.linux-amd64
--stackdriver_exporter google.project-id -monitoring.metrics-type-prefixes compute.googleapis.com,storage.googleapis.com
--web.listen-address="0.0.0.0:9255"
RemainAfterExit=true
[Install]
WantedBy=multi-user.target

I am getting following error:
Warning: The unit file, source configuration file or drop-ins of stackdriver_exporter.service changed on disk. Run 's>
● stackdriver_exporter.service - Stackdriver exporter
Loaded: loaded (/lib/systemd/system/stackdriver_exporter.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-12-29 15:27:49 UTC; 1h 55min ago
Process: 25883 ExecStart=/root/stackdriver_exporter-0.11.0.linux-amd64 \ (code=exited, status=203/EXEC)
Main PID: 25883 (code=exited, status=203/EXEC)
Dec 29 15:27:49 gcp120928 systemd[1]: Started Stackdriver exporter.
Dec 29 15:27:49 gcp120928 systemd[25883]: stackdriver_exporter.service: Failed to execute command: Permission denied
Dec 29 15:27:49 gcp120928 systemd[25883]: stackdriver_exporter.service: Failed at step EXEC spawning /root/stackdrive>
Dec 29 15:27:49 gcp120928 systemd[1]: stackdriver_exporter.service: Main process exited, code=exited, status=203/EXEC
Dec 29 15:27:49 gcp120928 systemd[1]: stackdriver_exporter.service: Failed with result 'exit-code'.

  1. Is is possible to configure stackdriver exporter in prometheus.yml? Could you please provide a sample file or code for that too?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the systemd unit and prometheus.yml configuration shown in the issue, then verify the exporter command and scrape setup against the project's existing usage documentation. Done means providing a working systemd example and a Prometheus configuration example that address the reported execution error and explain the required project settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, prometheus
Domain
cloud, devops, observability
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.