Skip to main content

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"
        // }
    }
}

Metadata

Release files for ark-metrics-collector 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ark-metrics-collector 0.2.0
File Size Uploaded Provenance Actions
ark_metrics_collector-0.2.0.tar.gz 4.5 kB With provenance Details for ark_metrics_collector-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ark-metrics-collector 0.2.0
File Interpreter ABI Platform Actions
ark_metrics_collector-0.2.0-py3-none-any.whl Python 3 none any Details for ark_metrics_collector-0.2.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / ark_metrics_collector-0.2.0.tar.gz

Download URL ark_metrics_collector-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
41aed1e808814ea3eaf830b2fd82273307254aaab7961de85d80bfb0747e913c
BLAKE2b-256 checksum
How to use checksums
3d509e038c8a88e81ce982a5085341a7ecd4014107111ab9760d24f4fc5b0b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2024.

Transparency log

Release files / ark_metrics_collector-0.2.0-py3-none-any.whl

Download URL ark_metrics_collector-0.2.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29aa0cae656d16c422d15288343791083174f93d5b19872a346435f3f5e02599
BLAKE2b-256 checksum
How to use checksums
2f9744beef98da0d8afd39fce6c316c2c1dafad64571a44563a483849f66c820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2024.

Transparency log

Security for ark-metrics-collector 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ark_metrics_collector-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2024.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page