@pulumiverse/grafana 2.19.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assert/index.d.ts +9 -0
- package/assert/index.js +16 -1
- package/assert/index.js.map +1 -1
- package/assert/profileConfig.d.ts +222 -0
- package/assert/profileConfig.js +174 -0
- package/assert/profileConfig.js.map +1 -0
- package/assert/promRuleFile.d.ts +320 -0
- package/assert/promRuleFile.js +302 -0
- package/assert/promRuleFile.js.map +1 -0
- package/assert/traceConfig.d.ts +222 -0
- package/assert/traceConfig.js +174 -0
- package/assert/traceConfig.js.map +1 -0
- package/cloud/accessPolicyRotatingToken.d.ts +7 -7
- package/cloud/accessPolicyRotatingToken.js +1 -1
- package/config/vars.d.ts +4 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/fleetmanagement/collector.d.ts +13 -0
- package/fleetmanagement/collector.js +3 -0
- package/fleetmanagement/collector.js.map +1 -1
- package/fleetmanagement/getCollector.d.ts +6 -0
- package/fleetmanagement/getCollector.js +2 -0
- package/fleetmanagement/getCollector.js.map +1 -1
- package/fleetmanagement/getCollectors.d.ts +2 -0
- package/fleetmanagement/getCollectors.js +2 -0
- package/fleetmanagement/getCollectors.js.map +1 -1
- package/fleetmanagement/pipeline.d.ts +16 -3
- package/fleetmanagement/pipeline.js +3 -0
- package/fleetmanagement/pipeline.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +8 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/types/input.d.ts +80 -0
- package/types/output.d.ts +81 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages Knowledge Graph Trace Configuration through Grafana API.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
12
|
+
*
|
|
13
|
+
* const production = new grafana.assert.TraceConfig("production", {
|
|
14
|
+
* name: "production",
|
|
15
|
+
* priority: 1000,
|
|
16
|
+
* defaultConfig: false,
|
|
17
|
+
* dataSourceUid: "grafanacloud-traces",
|
|
18
|
+
* matches: [
|
|
19
|
+
* {
|
|
20
|
+
* property: "asserts_entity_type",
|
|
21
|
+
* op: "=",
|
|
22
|
+
* values: ["Service"],
|
|
23
|
+
* },
|
|
24
|
+
* {
|
|
25
|
+
* property: "deployment_environment",
|
|
26
|
+
* op: "=",
|
|
27
|
+
* values: [
|
|
28
|
+
* "production",
|
|
29
|
+
* "staging",
|
|
30
|
+
* ],
|
|
31
|
+
* },
|
|
32
|
+
* {
|
|
33
|
+
* property: "asserts_site",
|
|
34
|
+
* op: "=",
|
|
35
|
+
* values: [
|
|
36
|
+
* "us-east-1",
|
|
37
|
+
* "us-west-2",
|
|
38
|
+
* ],
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* entityPropertyToTraceLabelMapping: {
|
|
42
|
+
* cluster: "resource.k8s.cluster.name",
|
|
43
|
+
* namespace: "resource.k8s.namespace",
|
|
44
|
+
* container: "resource.container.name",
|
|
45
|
+
* otel_service: "resource.service.name",
|
|
46
|
+
* otel_namespace: "resource.service.namespace",
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* const development = new grafana.assert.TraceConfig("development", {
|
|
50
|
+
* name: "development",
|
|
51
|
+
* priority: 2000,
|
|
52
|
+
* defaultConfig: false,
|
|
53
|
+
* dataSourceUid: "grafanacloud-traces",
|
|
54
|
+
* matches: [
|
|
55
|
+
* {
|
|
56
|
+
* property: "asserts_entity_type",
|
|
57
|
+
* op: "=",
|
|
58
|
+
* values: ["Service"],
|
|
59
|
+
* },
|
|
60
|
+
* {
|
|
61
|
+
* property: "deployment_environment",
|
|
62
|
+
* op: "=",
|
|
63
|
+
* values: [
|
|
64
|
+
* "development",
|
|
65
|
+
* "testing",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* {
|
|
69
|
+
* property: "asserts_site",
|
|
70
|
+
* op: "=",
|
|
71
|
+
* values: ["us-east-1"],
|
|
72
|
+
* },
|
|
73
|
+
* {
|
|
74
|
+
* property: "service",
|
|
75
|
+
* op: "=",
|
|
76
|
+
* values: ["my sample api"],
|
|
77
|
+
* },
|
|
78
|
+
* ],
|
|
79
|
+
* entityPropertyToTraceLabelMapping: {
|
|
80
|
+
* cluster: "resource.k8s.cluster.name",
|
|
81
|
+
* namespace: "resource.k8s.namespace",
|
|
82
|
+
* container: "resource.container.name",
|
|
83
|
+
* otel_service: "resource.service.name",
|
|
84
|
+
* otel_namespace: "resource.service.namespace",
|
|
85
|
+
* pod: "span.k8s.pod.name",
|
|
86
|
+
* },
|
|
87
|
+
* });
|
|
88
|
+
* const minimal = new grafana.assert.TraceConfig("minimal", {
|
|
89
|
+
* name: "minimal",
|
|
90
|
+
* priority: 3000,
|
|
91
|
+
* dataSourceUid: "tempo-minimal",
|
|
92
|
+
* matches: [{
|
|
93
|
+
* property: "asserts_entity_type",
|
|
94
|
+
* op: "IS NOT NULL",
|
|
95
|
+
* }],
|
|
96
|
+
* entityPropertyToTraceLabelMapping: {
|
|
97
|
+
* cluster: "resource.k8s.cluster.name",
|
|
98
|
+
* otel_service: "resource.service.name",
|
|
99
|
+
* otel_namespace: "resource.service.namespace",
|
|
100
|
+
* },
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ## Import
|
|
105
|
+
*
|
|
106
|
+
* ```sh
|
|
107
|
+
* $ pulumi import grafana:assert/traceConfig:TraceConfig name "{{ name }}"
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare class TraceConfig extends pulumi.CustomResource {
|
|
111
|
+
/**
|
|
112
|
+
* Get an existing TraceConfig resource's state with the given name, ID, and optional extra
|
|
113
|
+
* properties used to qualify the lookup.
|
|
114
|
+
*
|
|
115
|
+
* @param name The _unique_ name of the resulting resource.
|
|
116
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
117
|
+
* @param state Any extra arguments used during the lookup.
|
|
118
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
119
|
+
*/
|
|
120
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TraceConfigState, opts?: pulumi.CustomResourceOptions): TraceConfig;
|
|
121
|
+
/**
|
|
122
|
+
* Returns true if the given object is an instance of TraceConfig. This is designed to work even
|
|
123
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
124
|
+
*/
|
|
125
|
+
static isInstance(obj: any): obj is TraceConfig;
|
|
126
|
+
/**
|
|
127
|
+
* DataSource to be queried (e.g., a Tempo instance).
|
|
128
|
+
*/
|
|
129
|
+
readonly dataSourceUid: pulumi.Output<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Is it the default config, therefore undeletable?
|
|
132
|
+
*/
|
|
133
|
+
readonly defaultConfig: pulumi.Output<boolean>;
|
|
134
|
+
/**
|
|
135
|
+
* Mapping of entity properties to trace labels.
|
|
136
|
+
*/
|
|
137
|
+
readonly entityPropertyToTraceLabelMapping: pulumi.Output<{
|
|
138
|
+
[key: string]: string;
|
|
139
|
+
} | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* List of match rules for entity properties.
|
|
142
|
+
*/
|
|
143
|
+
readonly matches: pulumi.Output<outputs.assert.TraceConfigMatch[] | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* The name of the trace configuration.
|
|
146
|
+
*/
|
|
147
|
+
readonly name: pulumi.Output<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Priority of the trace configuration. A lower number means a higher priority.
|
|
150
|
+
*/
|
|
151
|
+
readonly priority: pulumi.Output<number>;
|
|
152
|
+
/**
|
|
153
|
+
* Create a TraceConfig resource with the given unique name, arguments, and options.
|
|
154
|
+
*
|
|
155
|
+
* @param name The _unique_ name of the resource.
|
|
156
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
157
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
158
|
+
*/
|
|
159
|
+
constructor(name: string, args: TraceConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Input properties used for looking up and filtering TraceConfig resources.
|
|
163
|
+
*/
|
|
164
|
+
export interface TraceConfigState {
|
|
165
|
+
/**
|
|
166
|
+
* DataSource to be queried (e.g., a Tempo instance).
|
|
167
|
+
*/
|
|
168
|
+
dataSourceUid?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Is it the default config, therefore undeletable?
|
|
171
|
+
*/
|
|
172
|
+
defaultConfig?: pulumi.Input<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* Mapping of entity properties to trace labels.
|
|
175
|
+
*/
|
|
176
|
+
entityPropertyToTraceLabelMapping?: pulumi.Input<{
|
|
177
|
+
[key: string]: pulumi.Input<string>;
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* List of match rules for entity properties.
|
|
181
|
+
*/
|
|
182
|
+
matches?: pulumi.Input<pulumi.Input<inputs.assert.TraceConfigMatch>[]>;
|
|
183
|
+
/**
|
|
184
|
+
* The name of the trace configuration.
|
|
185
|
+
*/
|
|
186
|
+
name?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Priority of the trace configuration. A lower number means a higher priority.
|
|
189
|
+
*/
|
|
190
|
+
priority?: pulumi.Input<number>;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The set of arguments for constructing a TraceConfig resource.
|
|
194
|
+
*/
|
|
195
|
+
export interface TraceConfigArgs {
|
|
196
|
+
/**
|
|
197
|
+
* DataSource to be queried (e.g., a Tempo instance).
|
|
198
|
+
*/
|
|
199
|
+
dataSourceUid: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Is it the default config, therefore undeletable?
|
|
202
|
+
*/
|
|
203
|
+
defaultConfig: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* Mapping of entity properties to trace labels.
|
|
206
|
+
*/
|
|
207
|
+
entityPropertyToTraceLabelMapping?: pulumi.Input<{
|
|
208
|
+
[key: string]: pulumi.Input<string>;
|
|
209
|
+
}>;
|
|
210
|
+
/**
|
|
211
|
+
* List of match rules for entity properties.
|
|
212
|
+
*/
|
|
213
|
+
matches?: pulumi.Input<pulumi.Input<inputs.assert.TraceConfigMatch>[]>;
|
|
214
|
+
/**
|
|
215
|
+
* The name of the trace configuration.
|
|
216
|
+
*/
|
|
217
|
+
name?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Priority of the trace configuration. A lower number means a higher priority.
|
|
220
|
+
*/
|
|
221
|
+
priority: pulumi.Input<number>;
|
|
222
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TraceConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages Knowledge Graph Trace Configuration through Grafana API.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const production = new grafana.assert.TraceConfig("production", {
|
|
18
|
+
* name: "production",
|
|
19
|
+
* priority: 1000,
|
|
20
|
+
* defaultConfig: false,
|
|
21
|
+
* dataSourceUid: "grafanacloud-traces",
|
|
22
|
+
* matches: [
|
|
23
|
+
* {
|
|
24
|
+
* property: "asserts_entity_type",
|
|
25
|
+
* op: "=",
|
|
26
|
+
* values: ["Service"],
|
|
27
|
+
* },
|
|
28
|
+
* {
|
|
29
|
+
* property: "deployment_environment",
|
|
30
|
+
* op: "=",
|
|
31
|
+
* values: [
|
|
32
|
+
* "production",
|
|
33
|
+
* "staging",
|
|
34
|
+
* ],
|
|
35
|
+
* },
|
|
36
|
+
* {
|
|
37
|
+
* property: "asserts_site",
|
|
38
|
+
* op: "=",
|
|
39
|
+
* values: [
|
|
40
|
+
* "us-east-1",
|
|
41
|
+
* "us-west-2",
|
|
42
|
+
* ],
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* entityPropertyToTraceLabelMapping: {
|
|
46
|
+
* cluster: "resource.k8s.cluster.name",
|
|
47
|
+
* namespace: "resource.k8s.namespace",
|
|
48
|
+
* container: "resource.container.name",
|
|
49
|
+
* otel_service: "resource.service.name",
|
|
50
|
+
* otel_namespace: "resource.service.namespace",
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* const development = new grafana.assert.TraceConfig("development", {
|
|
54
|
+
* name: "development",
|
|
55
|
+
* priority: 2000,
|
|
56
|
+
* defaultConfig: false,
|
|
57
|
+
* dataSourceUid: "grafanacloud-traces",
|
|
58
|
+
* matches: [
|
|
59
|
+
* {
|
|
60
|
+
* property: "asserts_entity_type",
|
|
61
|
+
* op: "=",
|
|
62
|
+
* values: ["Service"],
|
|
63
|
+
* },
|
|
64
|
+
* {
|
|
65
|
+
* property: "deployment_environment",
|
|
66
|
+
* op: "=",
|
|
67
|
+
* values: [
|
|
68
|
+
* "development",
|
|
69
|
+
* "testing",
|
|
70
|
+
* ],
|
|
71
|
+
* },
|
|
72
|
+
* {
|
|
73
|
+
* property: "asserts_site",
|
|
74
|
+
* op: "=",
|
|
75
|
+
* values: ["us-east-1"],
|
|
76
|
+
* },
|
|
77
|
+
* {
|
|
78
|
+
* property: "service",
|
|
79
|
+
* op: "=",
|
|
80
|
+
* values: ["my sample api"],
|
|
81
|
+
* },
|
|
82
|
+
* ],
|
|
83
|
+
* entityPropertyToTraceLabelMapping: {
|
|
84
|
+
* cluster: "resource.k8s.cluster.name",
|
|
85
|
+
* namespace: "resource.k8s.namespace",
|
|
86
|
+
* container: "resource.container.name",
|
|
87
|
+
* otel_service: "resource.service.name",
|
|
88
|
+
* otel_namespace: "resource.service.namespace",
|
|
89
|
+
* pod: "span.k8s.pod.name",
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* const minimal = new grafana.assert.TraceConfig("minimal", {
|
|
93
|
+
* name: "minimal",
|
|
94
|
+
* priority: 3000,
|
|
95
|
+
* dataSourceUid: "tempo-minimal",
|
|
96
|
+
* matches: [{
|
|
97
|
+
* property: "asserts_entity_type",
|
|
98
|
+
* op: "IS NOT NULL",
|
|
99
|
+
* }],
|
|
100
|
+
* entityPropertyToTraceLabelMapping: {
|
|
101
|
+
* cluster: "resource.k8s.cluster.name",
|
|
102
|
+
* otel_service: "resource.service.name",
|
|
103
|
+
* otel_namespace: "resource.service.namespace",
|
|
104
|
+
* },
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* ## Import
|
|
109
|
+
*
|
|
110
|
+
* ```sh
|
|
111
|
+
* $ pulumi import grafana:assert/traceConfig:TraceConfig name "{{ name }}"
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
class TraceConfig extends pulumi.CustomResource {
|
|
115
|
+
/**
|
|
116
|
+
* Get an existing TraceConfig resource's state with the given name, ID, and optional extra
|
|
117
|
+
* properties used to qualify the lookup.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resulting resource.
|
|
120
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
121
|
+
* @param state Any extra arguments used during the lookup.
|
|
122
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
123
|
+
*/
|
|
124
|
+
static get(name, id, state, opts) {
|
|
125
|
+
return new TraceConfig(name, state, { ...opts, id: id });
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Returns true if the given object is an instance of TraceConfig. This is designed to work even
|
|
129
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
130
|
+
*/
|
|
131
|
+
static isInstance(obj) {
|
|
132
|
+
if (obj === undefined || obj === null) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
return obj['__pulumiType'] === TraceConfig.__pulumiType;
|
|
136
|
+
}
|
|
137
|
+
constructor(name, argsOrState, opts) {
|
|
138
|
+
let resourceInputs = {};
|
|
139
|
+
opts = opts || {};
|
|
140
|
+
if (opts.id) {
|
|
141
|
+
const state = argsOrState;
|
|
142
|
+
resourceInputs["dataSourceUid"] = state?.dataSourceUid;
|
|
143
|
+
resourceInputs["defaultConfig"] = state?.defaultConfig;
|
|
144
|
+
resourceInputs["entityPropertyToTraceLabelMapping"] = state?.entityPropertyToTraceLabelMapping;
|
|
145
|
+
resourceInputs["matches"] = state?.matches;
|
|
146
|
+
resourceInputs["name"] = state?.name;
|
|
147
|
+
resourceInputs["priority"] = state?.priority;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
const args = argsOrState;
|
|
151
|
+
if (args?.dataSourceUid === undefined && !opts.urn) {
|
|
152
|
+
throw new Error("Missing required property 'dataSourceUid'");
|
|
153
|
+
}
|
|
154
|
+
if (args?.defaultConfig === undefined && !opts.urn) {
|
|
155
|
+
throw new Error("Missing required property 'defaultConfig'");
|
|
156
|
+
}
|
|
157
|
+
if (args?.priority === undefined && !opts.urn) {
|
|
158
|
+
throw new Error("Missing required property 'priority'");
|
|
159
|
+
}
|
|
160
|
+
resourceInputs["dataSourceUid"] = args?.dataSourceUid;
|
|
161
|
+
resourceInputs["defaultConfig"] = args?.defaultConfig;
|
|
162
|
+
resourceInputs["entityPropertyToTraceLabelMapping"] = args?.entityPropertyToTraceLabelMapping;
|
|
163
|
+
resourceInputs["matches"] = args?.matches;
|
|
164
|
+
resourceInputs["name"] = args?.name;
|
|
165
|
+
resourceInputs["priority"] = args?.priority;
|
|
166
|
+
}
|
|
167
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
168
|
+
super(TraceConfig.__pulumiType, name, resourceInputs, opts);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.TraceConfig = TraceConfig;
|
|
172
|
+
/** @internal */
|
|
173
|
+
TraceConfig.__pulumiType = 'grafana:assert/traceConfig:TraceConfig';
|
|
174
|
+
//# sourceMappingURL=traceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceConfig.js","sourceRoot":"","sources":["../../assert/traceConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc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,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA5FL,kCA6FC;AA/EG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -41,7 +41,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
41
41
|
* accessPolicyId: test.policyId,
|
|
42
42
|
* namePrefix: "my-policy-rotating-token",
|
|
43
43
|
* displayName: "My Policy Rotating Token",
|
|
44
|
-
* expireAfter: "
|
|
44
|
+
* expireAfter: "720h",
|
|
45
45
|
* earlyRotationWindow: "24h",
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
@@ -82,11 +82,11 @@ export declare class AccessPolicyRotatingToken extends pulumi.CustomResource {
|
|
|
82
82
|
*/
|
|
83
83
|
readonly displayName: pulumi.Output<string | undefined>;
|
|
84
84
|
/**
|
|
85
|
-
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
85
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
86
86
|
*/
|
|
87
87
|
readonly earlyRotationWindow: pulumi.Output<string>;
|
|
88
88
|
/**
|
|
89
|
-
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
89
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
90
90
|
*/
|
|
91
91
|
readonly expireAfter: pulumi.Output<string>;
|
|
92
92
|
/**
|
|
@@ -141,11 +141,11 @@ export interface AccessPolicyRotatingTokenState {
|
|
|
141
141
|
*/
|
|
142
142
|
displayName?: pulumi.Input<string>;
|
|
143
143
|
/**
|
|
144
|
-
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
144
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
145
145
|
*/
|
|
146
146
|
earlyRotationWindow?: pulumi.Input<string>;
|
|
147
147
|
/**
|
|
148
|
-
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
148
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
149
149
|
*/
|
|
150
150
|
expireAfter?: pulumi.Input<string>;
|
|
151
151
|
/**
|
|
@@ -188,11 +188,11 @@ export interface AccessPolicyRotatingTokenArgs {
|
|
|
188
188
|
*/
|
|
189
189
|
displayName?: pulumi.Input<string>;
|
|
190
190
|
/**
|
|
191
|
-
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
|
|
191
|
+
* Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
192
192
|
*/
|
|
193
193
|
earlyRotationWindow: pulumi.Input<string>;
|
|
194
194
|
/**
|
|
195
|
-
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
|
|
195
|
+
* Duration after which the token will expire (e.g. '24h', '30m', '1h30m'). Valid units are 's' (seconds), 'm' (minutes) and 'h' (hours).
|
|
196
196
|
*/
|
|
197
197
|
expireAfter: pulumi.Input<string>;
|
|
198
198
|
/**
|
|
@@ -47,7 +47,7 @@ const utilities = require("../utilities");
|
|
|
47
47
|
* accessPolicyId: test.policyId,
|
|
48
48
|
* namePrefix: "my-policy-rotating-token",
|
|
49
49
|
* displayName: "My Policy Rotating Token",
|
|
50
|
-
* expireAfter: "
|
|
50
|
+
* expireAfter: "720h",
|
|
51
51
|
* earlyRotationWindow: "24h",
|
|
52
52
|
* });
|
|
53
53
|
* ```
|
package/config/vars.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ export declare const fleetManagementUrl: string | undefined;
|
|
|
42
42
|
* A Grafana Frontend Observability API access token. May alternatively be set via the `GRAFANA_FRONTEND_O11Y_API_ACCESS_TOKEN` environment variable.
|
|
43
43
|
*/
|
|
44
44
|
export declare const frontendO11yApiAccessToken: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The Grafana Frontend Observability API URL. This is optional, and should only be set to override the default API. May alternatively be set via the `GRAFANA_FRONTEND_O11Y_API_URL` environment variable.
|
|
47
|
+
*/
|
|
48
|
+
export declare const frontendO11yApiUrl: string | undefined;
|
|
45
49
|
/**
|
|
46
50
|
* Optional. HTTP headers mapping keys to values used for accessing the Grafana and Grafana Cloud APIs. May alternatively be set via the `GRAFANA_HTTP_HEADERS` environment variable in JSON format.
|
|
47
51
|
*/
|
package/config/vars.js
CHANGED
|
@@ -71,6 +71,12 @@ Object.defineProperty(exports, "frontendO11yApiAccessToken", {
|
|
|
71
71
|
},
|
|
72
72
|
enumerable: true,
|
|
73
73
|
});
|
|
74
|
+
Object.defineProperty(exports, "frontendO11yApiUrl", {
|
|
75
|
+
get() {
|
|
76
|
+
return __config.get("frontendO11yApiUrl");
|
|
77
|
+
},
|
|
78
|
+
enumerable: true,
|
|
79
|
+
});
|
|
74
80
|
Object.defineProperty(exports, "httpHeaders", {
|
|
75
81
|
get() {
|
|
76
82
|
return __config.getObject("httpHeaders");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAM9C,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C;IAC3E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACzE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE;IAClC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAClE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
6
6
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
7
|
+
* * Step-by-step guide
|
|
7
8
|
*
|
|
8
9
|
* Required access policy scopes:
|
|
9
10
|
*
|
|
@@ -48,6 +49,10 @@ export declare class Collector extends pulumi.CustomResource {
|
|
|
48
49
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
50
|
*/
|
|
50
51
|
static isInstance(obj: any): obj is Collector;
|
|
52
|
+
/**
|
|
53
|
+
* Type of the collector. Must be one of: ALLOY, OTEL. Defaults to ALLOY if not specified.
|
|
54
|
+
*/
|
|
55
|
+
readonly collectorType: pulumi.Output<string>;
|
|
51
56
|
/**
|
|
52
57
|
* Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
|
|
53
58
|
*/
|
|
@@ -71,6 +76,10 @@ export declare class Collector extends pulumi.CustomResource {
|
|
|
71
76
|
* Input properties used for looking up and filtering Collector resources.
|
|
72
77
|
*/
|
|
73
78
|
export interface CollectorState {
|
|
79
|
+
/**
|
|
80
|
+
* Type of the collector. Must be one of: ALLOY, OTEL. Defaults to ALLOY if not specified.
|
|
81
|
+
*/
|
|
82
|
+
collectorType?: pulumi.Input<string>;
|
|
74
83
|
/**
|
|
75
84
|
* Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
|
|
76
85
|
*/
|
|
@@ -86,6 +95,10 @@ export interface CollectorState {
|
|
|
86
95
|
* The set of arguments for constructing a Collector resource.
|
|
87
96
|
*/
|
|
88
97
|
export interface CollectorArgs {
|
|
98
|
+
/**
|
|
99
|
+
* Type of the collector. Must be one of: ALLOY, OTEL. Defaults to ALLOY if not specified.
|
|
100
|
+
*/
|
|
101
|
+
collectorType?: pulumi.Input<string>;
|
|
89
102
|
/**
|
|
90
103
|
* Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
|
|
91
104
|
*/
|
|
@@ -10,6 +10,7 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
12
12
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
13
|
+
* * Step-by-step guide
|
|
13
14
|
*
|
|
14
15
|
* Required access policy scopes:
|
|
15
16
|
*
|
|
@@ -66,11 +67,13 @@ class Collector extends pulumi.CustomResource {
|
|
|
66
67
|
opts = opts || {};
|
|
67
68
|
if (opts.id) {
|
|
68
69
|
const state = argsOrState;
|
|
70
|
+
resourceInputs["collectorType"] = state?.collectorType;
|
|
69
71
|
resourceInputs["enabled"] = state?.enabled;
|
|
70
72
|
resourceInputs["remoteAttributes"] = state?.remoteAttributes;
|
|
71
73
|
}
|
|
72
74
|
else {
|
|
73
75
|
const args = argsOrState;
|
|
76
|
+
resourceInputs["collectorType"] = args?.collectorType;
|
|
74
77
|
resourceInputs["enabled"] = args?.enabled;
|
|
75
78
|
resourceInputs["remoteAttributes"] = args?.remoteAttributes;
|
|
76
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../fleetmanagement/collector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../fleetmanagement/collector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;SAChE;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAjEL,8BAkEC;AApDG,gBAAgB;AACO,sBAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
6
6
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
7
|
+
* * Step-by-step guide
|
|
7
8
|
*
|
|
8
9
|
* Required access policy scopes:
|
|
9
10
|
*
|
|
@@ -34,6 +35,10 @@ export interface GetCollectorArgs {
|
|
|
34
35
|
* A collection of values returned by getCollector.
|
|
35
36
|
*/
|
|
36
37
|
export interface GetCollectorResult {
|
|
38
|
+
/**
|
|
39
|
+
* Type of the collector (ALLOY or OTEL)
|
|
40
|
+
*/
|
|
41
|
+
readonly collectorType: string;
|
|
37
42
|
/**
|
|
38
43
|
* Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service
|
|
39
44
|
*/
|
|
@@ -60,6 +65,7 @@ export interface GetCollectorResult {
|
|
|
60
65
|
*
|
|
61
66
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
62
67
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
68
|
+
* * Step-by-step guide
|
|
63
69
|
*
|
|
64
70
|
* Required access policy scopes:
|
|
65
71
|
*
|
|
@@ -10,6 +10,7 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
12
12
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
13
|
+
* * Step-by-step guide
|
|
13
14
|
*
|
|
14
15
|
* Required access policy scopes:
|
|
15
16
|
*
|
|
@@ -38,6 +39,7 @@ exports.getCollector = getCollector;
|
|
|
38
39
|
*
|
|
39
40
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
40
41
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
42
|
+
* * Step-by-step guide
|
|
41
43
|
*
|
|
42
44
|
* Required access policy scopes:
|
|
43
45
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCollector.js","sourceRoot":"","sources":["../../fleetmanagement/getCollector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getCollector.js","sourceRoot":"","sources":["../../fleetmanagement/getCollector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AAqCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,mDAAmD,EAAE;QACpF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
|
|
@@ -5,6 +5,7 @@ import * as outputs from "../types/output";
|
|
|
5
5
|
*
|
|
6
6
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
7
7
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
8
|
+
* * Step-by-step guide
|
|
8
9
|
*
|
|
9
10
|
* Required access policy scopes:
|
|
10
11
|
*
|
|
@@ -38,6 +39,7 @@ export interface GetCollectorsResult {
|
|
|
38
39
|
*
|
|
39
40
|
* * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/)
|
|
40
41
|
* * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/)
|
|
42
|
+
* * Step-by-step guide
|
|
41
43
|
*
|
|
42
44
|
* Required access policy scopes:
|
|
43
45
|
*
|