Skip to main content

No project description provided

Project description

ark-metrics-collector

Prometheus metrics exporter service for Ark Survival Ascended servers.

Grafana Dashboard

Grafana dashboard provided for use https://grafana.com/grafana/dashboards/22189-ark-survival-ascended/

Installing

  1. Install python3-pip
  2. Run pip install ark-metrics-collector
  3. Create a config.yaml with the Ark Metrics Collector Configuration
  4. Run ark-metrics-collector --config=/path/to/config.yaml

Requirements

You must have:

  • Grafana alloy or another metrics scrapping tool capable of scraping prometheus metrics.
  • A Promtheus server to forward metrics to.
  • Python3 installed.

The following arguments are required when starting Ark to display all possible metrics:

-servergamelog -servergamelogincludetribelogs -ServerRCONOutputTribeLogs

Ark Metrics Collector Configuration

Modify config.yaml. The following are configuration options:

Key Description Example Value
poll_interval Polling interval in seconds 10
log_file_path Path to the Ark log file "/path/to/ShooterGame/Saved/Logs/ShooterGame.log"
metrics_collector_port Port to expose /metrics endpoint 5001

Example:

poll_interval: 10                                                 
log_file_path: "/ark-asa/ShooterGame/Saved/Logs/ShooterGame.log"  
metrics_collector_port: 5002                                      

Grafana Alloy Configuration

  • Ensure host is set to the fully qualified domain name (FQDN) of the host.
  • __address__ is the address of the server running the ark-metrics-collector. Leave as localhost:<port> if alloy is running on the same host as ark-metrics-collector.
  • Ensure endpoint url is set to the address of the prometheus server.
prometheus.scrape "scrape_ark" {
  targets = [
    {"__address__" = "localhost:5000", "host" = "ark-scorched-earth.lab.com"},
  ]

  metrics_path = "/metrics"

  forward_to      = [prometheus.remote_write.metrics_service.receiver]
  scrape_interval = "10s"
}

prometheus.scrape "scrape_metrics" {
  targets         = prometheus.exporter.unix.local_system.targets
  forward_to      = [prometheus.remote_write.metrics_service.receiver]
  scrape_interval = "10s"
}

prometheus.remote_write "metrics_service" {
    endpoint {
        url = "http://monitor.lab.com:9090/api/v1/write"

        // basic_auth {
        //   username = "admin"
        //   password = "admin"
        // }
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ark_metrics_collector-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ark_metrics_collector-0.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ark_metrics_collector-0.2.0.tar.gz.

File metadata

  • Download URL: ark_metrics_collector-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ark_metrics_collector-0.2.0.tar.gz
Algorithm Hash digest
SHA256 41aed1e808814ea3eaf830b2fd82273307254aaab7961de85d80bfb0747e913c
MD5 06e8491189d610a93fdcbc440c60995b
BLAKE2b-256 3d509e038c8a88e81ce982a5085341a7ecd4014107111ab9760d24f4fc5b0b55

See more details on using hashes here.

Provenance

The following attestation bundles were made for ark_metrics_collector-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on TheSudoYT/ark-metrics-collector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ark_metrics_collector-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ark_metrics_collector-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29aa0cae656d16c422d15288343791083174f93d5b19872a346435f3f5e02599
MD5 09329e639387db03f0aebf68e9c17851
BLAKE2b-256 2f9744beef98da0d8afd39fce6c316c2c1dafad64571a44563a483849f66c820

See more details on using hashes here.

Provenance

The following attestation bundles were made for ark_metrics_collector-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on TheSudoYT/ark-metrics-collector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page