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/
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 |
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"
// }
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ark_metrics_collector-0.1.0.tar.gz.
File metadata
- Download URL: ark_metrics_collector-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1830edc81332ebd17a0e396e95692e923376ec2c6b49bc9d14aeb612b87f1aa1
|
|
| MD5 |
6eaa1afcfd7736736ea28fa6876fa3ee
|
|
| BLAKE2b-256 |
d11929e83603332fe7916b56e14318d25cbc71bba5a26976b1c4800665c75e6f
|
File details
Details for the file ark_metrics_collector-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ark_metrics_collector-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50aa18d3546986a7bcf5107e70decd34d2444176365947dd8a2551d0db149a29
|
|
| MD5 |
90220dc1a5bc2755de238fd04a3b5ce6
|
|
| BLAKE2b-256 |
5454e0f104405bf615123b2a239cd2cae50caab808850b216d77d5655036dc82
|