Skip to main content

Module services

Module services 

Source
Expand description

Service configuration for Prometheus, Loki, Grafana, Promtail, and a caller-provided binary

Structs§

InstanceUrls
URLs for binary instance installation
MonitoringUrls
URLs for monitoring service installation

Constants§

ADDUSER_VERSION
Version of adduser package for Ubuntu 24.04 (arch-independent)
ALL_YML
YAML configuration for Grafana dashboard providers
DATASOURCES_YML
YAML configuration for Grafana datasources (Prometheus, Loki, Tempo, and Pyroscope)
FONTCONFIG_CONFIG_VERSION
Version of fontconfig-config package for Ubuntu 24.04
FONTS_DEJAVU_CORE_VERSION
Version of fonts-dejavu-core package for Ubuntu 24.04 (arch-independent)
FONTS_DEJAVU_MONO_VERSION
Version of fonts-dejavu-mono package for Ubuntu 24.04 (arch-independent)
GRAFANA_VERSION
Version of Grafana to download and install
LIBFONTCONFIG1_VERSION
Version of libfontconfig1 package for Ubuntu 24.04
LIBJEMALLOC2_VERSION
Version of libjemalloc2 package for Ubuntu 24.04
LOGROTATE_CONF
Logrotate configuration for binary logs
LOGROTATE_VERSION
Version of logrotate package for Ubuntu 24.04
LOKI_CONFIG
YAML configuration for Loki
LOKI_SERVICE
Systemd service file content for Loki
LOKI_VERSION
Version of Loki to download and install
MUSL_VERSION
Version of musl package for Ubuntu 24.04
NODE_EXPORTER_SERVICE
Systemd service file content for Node Exporter
NODE_EXPORTER_VERSION
Version of Node Exporter to download and install
PROMETHEUS_SERVICE
Systemd service file content for Prometheus
PROMETHEUS_VERSION
Version of Prometheus to download and install
PROMTAIL_SERVICE
Systemd service file content for Promtail
PROMTAIL_VERSION
Version of Promtail to download and install
PYROSCOPE_AGENT_SERVICE
Systemd service file content for the Pyroscope agent script
PYROSCOPE_AGENT_TIMER
Systemd timer file content for the Pyroscope agent service
PYROSCOPE_CONFIG
YAML configuration for Pyroscope
PYROSCOPE_SERVICE
Systemd service file content for Pyroscope
PYROSCOPE_VERSION
Version of Pyroscope to download and install
SAMPLY_VERSION
Version of Samply to download and install
TEMPO_CONFIG
YAML configuration for Tempo
TEMPO_SERVICE
Systemd service file content for Tempo
TEMPO_VERSION
Version of Tempo to download and install
UNZIP_VERSION
Version of unzip package for Ubuntu 24.04

Functions§

binary_s3_key
Returns the S3 key for an instance’s binary by digest (deduplicated within deployment)
config_s3_key
Returns the S3 key for an instance’s config by digest (deduplicated within deployment)
generate_prometheus_config
Generates Prometheus configuration with scrape targets for all instance IPs
generate_pyroscope_script
Shell script content for the Pyroscope agent (perf + wget)
grafana_dashboards_s3_key
grafana_datasources_s3_key
hosts_s3_key
Returns the S3 key for hosts.yaml by digest (deduplicated within deployment)
logrotate_config_s3_key
loki_config_s3_key
loki_service_s3_key
monitoring_s3_key
Returns the S3 key for monitoring config by digest (deduplicated within deployment)
node_exporter_service_s3_key
prometheus_service_s3_key
promtail_config
Generates Promtail configuration with the monitoring instance’s private IP and instance name
promtail_s3_key
Returns the S3 key for promtail config by digest (deduplicated within deployment)
promtail_service_s3_key
pyroscope_agent_service_s3_key
pyroscope_agent_timer_s3_key
pyroscope_config_s3_key
pyroscope_s3_key
Returns the S3 key for pyroscope agent script by digest (deduplicated within deployment)
pyroscope_service_s3_key
start_monitoring_services_cmd
Continuation of monitoring install command (services startup)
tempo_config_s3_key
tempo_service_s3_key