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
- Install python3-pip
- Run
pip install ark-metrics-collector - Create a
config.yamlwith the Ark Metrics Collector Configuration - 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
hostis set to the fully qualified domain name (FQDN) of the host. __address__is the address of the server running the ark-metrics-collector. Leave aslocalhost:<port>if alloy is running on the same host as ark-metrics-collector.- Ensure
endpoint urlis 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.