github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/tools/packaging/nfpm.jsonnet (about) 1 local overrides = { 2 logcli: { 3 description: 4 ||| 5 LogCLI is the command-line interface to Loki. 6 It facilitates running LogQL queries against a Loki instance. 7 |||, 8 }, 9 10 'loki-canary': { 11 description: 'Loki Canary is a standalone app that audits the log-capturing performance of a Grafana Loki cluster.', 12 }, 13 14 loki: { 15 description: ||| 16 Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. 17 It is designed to be very cost effective and easy to operate. 18 It does not index the contents of the logs, but rather a set of labels for each log stream. 19 |||, 20 contents+: [ 21 { 22 src: './tools/packaging/loki.service', 23 dst: '/etc/systemd/system/loki.service', 24 }, 25 { 26 src: './cmd/loki/loki-local-config.yaml', 27 dst: '/etc/loki/config.yml', 28 type: 'config|noreplace', 29 }, 30 ], 31 scripts: { 32 postinstall: './tools/packaging/loki-postinstall.sh', 33 }, 34 }, 35 36 promtail: { 37 description: ||| 38 Promtail is an agent which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud. 39 It is usually deployed to every machine that has applications needed to be monitored. 40 |||, 41 license: 'Apache-2.0', 42 contents+: [ 43 { 44 src: './tools/packaging/promtail.service', 45 dst: '/etc/systemd/system/promtail.service', 46 }, 47 { 48 src: './clients/cmd/promtail/promtail-local-config.yaml', 49 dst: '/etc/promtail/config.yml', 50 type: 'config|noreplace', 51 }, 52 ], 53 scripts: { 54 postinstall: './tools/packaging/promtail-postinstall.sh', 55 }, 56 }, 57 }; 58 59 local name = std.extVar('name'); 60 local arch = std.extVar('arch'); 61 62 { 63 name: name, 64 arch: arch, 65 platform: 'linux', 66 version: '${DRONE_TAG}', 67 section: 'default', 68 provides: [name], 69 maintainer: 'Grafana Labs <support@grafana.com>', 70 vendor: 'Grafana Labs Inc', 71 homepage: 'https://grafana.com/loki', 72 license: 'AGPL-3.0', 73 contents: [{ 74 src: './dist/tmp/packages/%s-linux-%s' % [name, arch], 75 dst: '/usr/bin/%s' % name, 76 }], 77 78 deb: { 79 signature: { 80 // Also set ${NFPM_PASSPHRASE} 81 key_file: '${NFPM_SIGNING_KEY_FILE}', 82 }, 83 }, 84 rpm: { 85 signature: { 86 // Also set ${NFPM_PASSPHRASE} 87 key_file: '${NFPM_SIGNING_KEY_FILE}', 88 }, 89 }, 90 } + overrides[name]